go-codec alternatives and similar packages
Based on the "go-capnproto" category.
Alternatively, view go-codec alternatives based on common mentions on social networks and blogs.
-
mapstructure
DISCONTINUED. Go library for decoding generic map values into native Go structures and vice versa. -
bambam
auto-generate capnproto schema from your golang source files. Depends on go-capnproto-1.0 at https://github.com/glycerine/go-capnproto -
go-serializer
:loop: Serialize any custom type or convert any content to []byte or string, for Go Programming Language
CodeRabbit: AI Code Reviews for Developers
Do you think we are missing an alternative of go-codec or a related project?
README
go-codec
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.
Code Organization and Module Support
This repository consists of 4 modules:
github.com/ugorji/go
(requiresgithub.com/ugorji/go/codec
)github.com/ugorji/go/codec
(requiresgithub.com/ugorji/go
) [README](codec/README.md)github.com/ugorji/go/codec/codecgen
(requiresgithub.com/ugorji/go/codec
) [README](codec/codecgen/README.md)github.com/ugorji/go/codec/bench
(requiresgithub.com/ugorji/go/codec
) [README](codec/bench/README.md)
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
is here for historical compatibility reasons, as modules was initially introduced only at repo rootgithub.com/ugorji/go/codec/codecgen
generates high performance static encoders/decoders for given typesgithub.com/ugorji/go/codec/bench
benchmarks codec against other popular go libraries
*Note that all licence references and agreements mentioned in the go-codec README section above
are relevant to that project's source code only.