This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tar
testdata
zip
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.md
Makefile
README.md
archive.go
archive_test.go

README.md

archive

A simple Go archiving library.

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to our contributing guidelines.

Software License Travis Coverage Status Go Doc Go Report Card Powered By: GoReleaser

Example usage

file, err := os.Create("file.zip")
if err != nil {
  // deal with the error
}
archive := archive.New(file)
defer archive.Close()
archive.Add("file.txt", "/path/to/file.txt")