Codec provides a standardized way to marshal and unmarhsal data from Go structs
to common data ecoding formats, such as bson
, json
, cbor
, and others. In
addition to providign an easy to use interface for the various common encoding
types, it provides incredibly simple way to handle standard compression
algorithms, such as gzip
, zstd
, snappy
, and others.
The idea is to keep this aspect of the code as simple as possible, abstracting away the difficulty and allowing any extensibility to support the newest cutting edge data encoding, or compression algorithms to obtain gains easily, and with essentially no changes to codebases using this library.