Skip to content

gitcfly/mzip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Zip unzip package

How to install this package?

go get github.com/mateors/mzip

How to make zip files?

package main

import "github.com/mateors/mzip"

func main(){

 //How to make zip
 isOk,err:=mzip.MakeZip("test", "output.zip")
 if err!=nil{
     fmt.Println(err.Error())
 }
 fmt.Println("zip created:", isOk)

  //How to unzip
 filesSlice,err:=mzip.Unzip("output.zip", "outputFolderName")
 if err!=nil{
     fmt.Println(err.Error())
 }
 fmt.Println("Total unzipped files:", len(filesSlice))

}
 

About

mateors zip and unzip package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%