This repository contains the go-codec
library, the codecgen
tool and
benchmarks for comparing against other libraries.
This is a High Performance, Feature-Rich Idiomatic Go 1.4+ codec/encoding library for binary and text formats: binc, msgpack, cbor, json and simple.
It fully supports the legacy GOPATH
and the new go modules
modes.
This repository consists of 4 modules:
github.com/ugorji/go/codec
READMEgithub.aaakk.us.kg/ugorji/go/codec/codecgen
(requiresgithub.aaakk.us.kg/ugorji/go/codec
) READMEgithub.aaakk.us.kg/ugorji/go/codec/bench
(requiresgithub.aaakk.us.kg/ugorji/go/codec
) READMEgithub.aaakk.us.kg/ugorji/go
(requiresgithub.aaakk.us.kg/ugorji/go/codec
)
For encoding and decoding, the github.com/ugorji/go/codec
module is sufficient.
To install:
go get github.com/ugorji/go/codec
The other modules exist for specific uses, and all require github.com/ugorji/go/codec
github.com/ugorji/go/codec/codecgen
generates high performance static encoders/decoders for given typesgithub.aaakk.us.kg/ugorji/go/codec/bench
benchmarks codec against other popular go librariesgithub.aaakk.us.kg/ugorji/go
is here for historical compatibility reasons, as modules was initially introduced only at repo root