An open API service indexing awesome lists of open source software.

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

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 folder

zipFile.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.

[![Paypal](https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png)](https://paypal.me/MattSpurrier) Buy Me A Coffee