https://github.com/sger/go-archiver
Simple Archiving with Golang
https://github.com/sger/go-archiver
Last synced: 7 months ago
JSON representation
Simple Archiving with Golang
- Host: GitHub
- URL: https://github.com/sger/go-archiver
- Owner: sger
- Created: 2016-05-03T12:03:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-27T07:40:43.000Z (almost 10 years ago)
- Last Synced: 2025-01-06T01:24:34.241Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/sger/podule)
[](https://coveralls.io/github/sger/podule?branch=master)
# Go Archiver
Simple Archiving with Golang
```go
package main
import (
"fmt"
"github.com/sger/archiver"
)
func main() {
err := archiver.GetInstance().Archive("src/go", "src/output/files.zip")
// Throw error if directory don't exists
if err != nil {
fmt.Println(err)
}
err = archiver.GetInstance().Restore("src/output/files.zip", "src/output/restored")
if err != nil {
fmt.Println(err)
}
}
```
Author
-----
__Spiros Gerokostas__
- [](https://twitter.com/sger)
- :email: spiros.gerokostas@gmail.com
License
-----
Go Archiver is available under the MIT license. See the LICENSE file for more info.