Skip to content

Package zipp provides functions to create and extract .zip archives. Compatible with cross-platform systems.

License

Notifications You must be signed in to change notification settings

WoozyMasta/zipp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

go get github.com/woozymasta/zipp

Usage

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 - simple way to create and extract tar.gz archives

About

Package zipp provides functions to create and extract .zip archives. Compatible with cross-platform systems.

Topics

Resources

License

Stars

Watchers

Forks

Languages