• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

codec/H10-Jan-2021-64,30854,758

.travis.ymlH A D10-Jan-20212.1 KiB4947

FAQ.mdH A D10-Jan-20212.7 KiB7050

LICENSEH A D10-Jan-20211.1 KiB2318

README.mdH A D10-Jan-20212.1 KiB4027

doc.goH A D10-Jan-2021256 102

go.modH A D10-Jan-202180 63

msgpack.org.mdH A D10-Jan-20211.3 KiB4837

README.md

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 Status](https://travis-ci.org/ugorji/go.svg?branch=master)](https://travis-ci.org/ugorji/go)
3[![codecov](https://codecov.io/gh/ugorji/go/branch/master/graph/badge.svg?v=4)](https://codecov.io/gh/ugorji/go)
4[![PkgGoDev](https://pkg.go.dev/badge/github.com/ugorji/go/codec)](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
10This repository contains the `go-codec` library, the `codecgen` tool and
11benchmarks for comparing against other libraries.
12
13This is a High Performance, Feature-Rich Idiomatic Go 1.4+ codec/encoding library
14for binary and text formats: binc, msgpack, cbor, json and simple.
15
16It fully supports the legacy `GOPATH` and the new `go modules` modes.
17
18## Code Organization and Module Support
19
20This repository consists of 4 modules:
21
22- `github.com/ugorji/go` (requires `github.com/ugorji/go/codec`)
23- `github.com/ugorji/go/codec` (requires `github.com/ugorji/go`) [README](codec/README.md)
24- `github.com/ugorji/go/codec/codecgen` (requires `github.com/ugorji/go/codec`) [README](codec/codecgen/README.md)
25- `github.com/ugorji/go/codec/bench` (requires `github.com/ugorji/go/codec`) [README](codec/bench/README.md)
26
27For encoding and decoding, the `github.com/ugorji/go/codec` module is sufficient.
28
29To install:
30
31```
32go get github.com/ugorji/go/codec
33```
34
35The other modules exist for specific uses, and all require `github.com/ugorji/go/codec`
36
37- `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)
38- `github.com/ugorji/go/codec/codecgen` generates high performance static encoders/decoders for given types
39- `github.com/ugorji/go/codec/bench` benchmarks codec against other popular go libraries
40