go/pack

go implementation of pack/unpack function