lzo implements reading and writing of lzo format compressed files for Go, following lzop format. It uses the lzo C library underneath.
Download and install :
$ go get github.com/cyberdelia/lzo
Add it to your code :
import "github.com/cyberdelia/lzo"
Download and install:
$ go get github.com/cyberdelia/lzo/cmd/lzop
Compress and decompress:
$ lzop testdata/pg135.txt
$ lzop -d testdata/pg135.txt.lzo