https://github.com/woozymasta/zipp
Package zipp provides functions to create and extract .zip archives. Compatible with cross-platform systems.
https://github.com/woozymasta/zipp
archive go golang zip
Last synced: 8 months ago
JSON representation
Package zipp provides functions to create and extract .zip archives. Compatible with cross-platform systems.
- Host: GitHub
- URL: https://github.com/woozymasta/zipp
- Owner: WoozyMasta
- License: bsd-3-clause
- Created: 2024-12-25T18:30:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-25T18:35:23.000Z (over 1 year ago)
- Last Synced: 2025-05-21T08:48:54.684Z (about 1 year ago)
- Topics: archive, go, golang, zip
- Language: Go
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZIPp
`zipp` is a Go package for creating and extracting ZIP archives,
where the second "p" helps avoid conflicts and aids in memorization—think
of it as representing "package" or "pack"
It provides simple functions for working with ZIP files in a cross-platform way.
## Installation
Install the package using `go get`:
```bash
go get github.com/woozymasta/zipp
```
## Usage
```go
import "github.com/woozymasta/zipp"
// To create a ZIP archive from a directory, use the Pack function:
err := zipp.Pack("path/to/sourceDir", "path/to/archive.zip")
if err != nil {
log.Fatal(err)
}
// To extract the contents of a ZIP archive to a specified directory, use the Unpack function:
err := ziputil.Unpack("path/to/archive.zip", "path/to/destinationDir")
if err != nil {
log.Fatal(err)
}
```
## Other archive packages
* [TGZ Package](https://github.com/WoozyMasta/tgz) -
simple way to create and extract tar.gz archives