https://github.com/sriosdev/zipper
Package for compressing directories into a ZIP file
https://github.com/sriosdev/zipper
go golang zip
Last synced: 5 months ago
JSON representation
Package for compressing directories into a ZIP file
- Host: GitHub
- URL: https://github.com/sriosdev/zipper
- Owner: sriosdev
- Created: 2020-04-14T16:05:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T17:26:08.000Z (about 6 years ago)
- Last Synced: 2024-06-20T13:29:45.053Z (about 2 years ago)
- Topics: go, golang, zip
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoZipper
## Package for compressing directories into a ZIP file
### Install
```
# go get github.com/sriosdev/zipper@{version}
$ go get github.com/sriosdev/zipper@v1.0.1
```
### Use
#### Import:
```
import "github.com/srios/zipper"
```
#### Create ZIP:
```
// Open a directory
dir, err := os.Open("/mypath")
if err != nil {
log.fatalln(err)
return
}
// Make ZIP file
zipfile, err = zipper.ZipFolder(dir)
```