Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
tar
 
 
 
 
zip
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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")