https://github.com/digitalsparky/gozipper
Easy file zipping in Go
https://github.com/digitalsparky/gozipper
compression go golang zip
Last synced: 4 months ago
JSON representation
Easy file zipping in Go
- Host: GitHub
- URL: https://github.com/digitalsparky/gozipper
- Owner: digitalsparky
- License: gpl-3.0
- Created: 2018-12-01T09:38:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-29T06:20:19.000Z (over 5 years ago)
- Last Synced: 2025-01-11T21:41:21.565Z (5 months ago)
- Topics: compression, go, golang, zip
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Zipping files via Go the 'complete' way
This allows you to add folders (recusive) or files while still maintaining dates and more importantly file permissions, even in windows.
Usage:
```
zipFile, err := zip.NewZipFile("zip-file-path.zip")
if err != nil {
return err
}zipFile.AddFile("file") // run for each file
zipFile.AddFolder("folder") // add a folderzipFile.Write() // Write the zip file
```# Like my stuff?
Would you like to buy me a coffee or send me a tip?
While it's not expected, I would really appreciate it.[](https://paypal.me/MattSpurrier)
![]()