Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructPath ¶
func FilesEqual ¶
func ZipFolderN ¶
func ZipFolderN(folderPath, outputName string)
Types ¶
type ZipCrawler ¶
type ZipCrawler struct { ZipFile // contains filtered or unexported fields }
func (*ZipCrawler) Crawl ¶
func (c *ZipCrawler) Crawl(path string)
func (*ZipCrawler) HandleFile ¶
func (c *ZipCrawler) HandleFile(path string)
To handle files, we simply write the file contents to the zip file in the location specified by the path.
func (*ZipCrawler) HandleFolder ¶
func (c *ZipCrawler) HandleFolder(path string)
To handle folders we simply recursively call Crawl on the folder being zipped.
type ZipFile ¶
type ZipFile struct {
// contains filtered or unexported fields
}
~~~~~~~~~~~~~~~~~~~~ ZipFile
func NewZipFile ¶
func (*ZipFile) WriteAndClose ¶
func (z *ZipFile) WriteAndClose()
Click to show internal directories.
Click to hide internal directories.