Debian Codegraph @

README.md

raw symbols SCIP
1 [![Sourcegraph](https://sourcegraph.com/github.com/ugorji/go/-/badge.svg?v=4)](https://sourcegraph.com/github.com/ugorji/go/-/tree/codec?badge)
2 [![Build and Test go-codec](https://github.com/ugorji/go/actions/workflows/test.yml/badge.svg)](https://github.com/ugorji/go/actions/workflows/test.yml)
3 [![codecov](https://codecov.io/gh/ugorji/go/branch/master/graph/badge.svg?v=4)](https://codecov.io/gh/ugorji/go)
4 [![Go Reference](https://pkg.go.dev/badge/github.com/ugorji/go/codec.svg)](https://pkg.go.dev/github.com/ugorji/go/codec)
5 [![rcard](https://goreportcard.com/badge/github.com/ugorji/go/codec?v=4)](https://goreportcard.com/report/github.com/ugorji/go/codec)
6 [![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/ugorji/go/master/LICENSE)
7
8 # go-codec
9
10 This repository contains the `go-codec` library, the `codecgen` tool and
11 benchmarks for comparing against other libraries.
12
13 This is a High Performance, Feature-Rich Idiomatic Go 1.4+ codec/encoding library
14 for binary and text formats: binc, msgpack, cbor, json and simple.
15
16 It fully supports the legacy `GOPATH` and the new `go modules` modes.
17
18 ## Code Organization and Module Support
19
20 This repository consists of 4 modules:
21
22 - `github.com/ugorji/go/codec` [README](codec/README.md)
23 - `github.com/ugorji/go/codec/codecgen` (requires `github.com/ugorji/go/codec`) [README](codec/codecgen/README.md)
24 - `github.com/ugorji/go/codec/bench` (requires `github.com/ugorji/go/codec`) [README](codec/bench/README.md)
25 - `github.com/ugorji/go` (requires `github.com/ugorji/go/codec`)
26
27 For encoding and decoding, the `github.com/ugorji/go/codec` module is sufficient.
28
29 To install:
30
31 ```
32 go get github.com/ugorji/go/codec
33 ```
34
35 The other modules exist for specific uses, and all require `github.com/ugorji/go/codec`
36
37 - `github.com/ugorji/go/codec/codecgen` generates high performance static encoders/decoders for given types
38 - `github.com/ugorji/go/codec/bench` benchmarks codec against other popular go libraries
39 - `github.com/ugorji/go` is here for [historical compatibility reasons, as modules was initially introduced only at repo root](https://github.com/ugorji/go/issues/299)