Documentation ¶
Index ¶
- func WriteContentToZip(zipWriter *zip.Writer, header *zip.FileHeader, content []byte) error
- type File
- type Manager
- func (m Manager) AddContentAsFile(content string, fileNameInArchive string) error
- func (m Manager) AddContentAsFileWithModifiedDate(content string, fileNameInArchive string, modified time.Time) error
- func (m Manager) AddFileToArchive(file File) error
- func (m Manager) AddFilesToArchive(files []File, closeAfterFinish bool) error
- func (m Manager) Close() error
- func (m Manager) GetContent() []byte
- func (m Manager) SaveArchiveAsFile(archivePath string) error
- type ZipWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteContentToZip ¶ added in v0.6.0
Types ¶
type Manager ¶ added in v0.6.0
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v0.6.0
func NewManager() *Manager
func (Manager) AddContentAsFile ¶ added in v0.6.0
func (Manager) AddContentAsFileWithModifiedDate ¶ added in v0.6.0
func (Manager) AddFileToArchive ¶ added in v0.6.0
func (Manager) AddFilesToArchive ¶ added in v0.6.0
func (Manager) GetContent ¶ added in v0.6.0
func (Manager) SaveArchiveAsFile ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.