Package cbor implements encoding and decoding of CBOR (Concise Binary Object Representation) as defined by IETF RFC-8949, for the Go programming language.
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-cbor
CBOR is sometimes compared to JSON.
Sometimes CBOR is called a binary JSON.
There is some truth to that, but — there are also a lot of differences between CBOR and JSON.
CBOR and JSON are similar in that — they are both ways of represents hierarchical key-value pairs.
But, CBOR has different basic-types than JSON.
To import package cbor use import code like the following:
import "github.com/reiver/go-cbor"
To install package cbor do the following:
GOPROXY=direct go get https://github.com/reiver/go-cbor
Package cbor was written by Charles Iliya Krempeaux