Tools and Lib for DevOps and Sysadmin (www.linuxpro.com.br -> LP)
The gozip
command can be used to add zipped content to your binary.
go get github.com/jniltinho/golp
Usage of gozip:
package main
import (
"github.com/jniltinho/golp/gozip"
)
func main() {
println("Create Gzip File ....")
gozip.Gzip("/home/linuxpro/source_file.pdf")
println("Unzip File Zip ....")
gozip.Unzip("filename.zip", "filename_folder")
}