MessagePack encoding for Golang
Supports:
Primitives, arrays, maps, structs, time.Time and interface{}.
Appengine *datastore.Key and datastore.Cursor.
CustomEncoder/CustomDecoder interfaces for custom encoding.
Extensions to encode type information.
Renaming fields via
msgpack:"my_field_name".Omitting individual empty fields via
msgpack:",omitempty"tag or all empty fields in a struct.Encoding/decoding all structs as arrays or individual structs.
Encoder.UseJSONTag with Decoder.UseJSONTag can turn msgpack into drop-in replacement for JSON.
Simple but very fast and efficient queries.
API docs: https://godoc.org/github.com/vmihailenco/msgpack. Examples: https://godoc.org/github.com/vmihailenco/msgpack#pkg-examples.
Installation
Install:
go get -u github.com/vmihailenco/msgpackQuickstart
Benchmark
Howto
Please go through examples to get an idea how to use this package.
See also
Last updated
Was this helpful?