A command-line tool for compressing and decompressing files using GCOMPRESSOR library (https://github.com/jkulak/gcompressor).
usage: gpress [--decompress] [--verbose] --sourcefile <file>
--decompress decompress file
--help display help
--sourcefile file to be compressed or decompressed
--verbose add debug output
--version display program version
To compress files
$ gpress --sourcefile file_to_compress.txt
To decompress files
$ gpress --decompress --sourcefile file_to_decompress.txt
I like to use Docker ๐ณ to work with Golang on my local dev machine.
Run the build
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.6 go build -v
Work inside the Docker container (you should set the GOPATH env variable)
$ docker run --rm -ti -e "GOPATH=/root/go" -v "$PWD":/root/go -w /root/go golang:1.6 bash
