This serializer created for MessagePack-CSharp + LZ4 encoded data. It is mutually compatible.
go get -u github.com/shamaton/lz4msgpack
# orig
go get -u github.com/d-o-n-u-t-s/lz4msgpack
func Sample() {
type Message struct {
Hello string
}
b, err := lz4msgpack.Marshal(&Message{Hello: "World"})
if err != nil {
panic(err)
}
var message Message
err = lz4msgpack.Unmarshal(b, &message)
if err != nil {
panic(err)
}
fmt.Println(message.Hello)
}