cbor

package module
v0.0.0-...-cdd1d5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 18 Imported by: 0

README

go-cbor

Package cbor implements encoding and decoding of CBOR (Concise Binary Object Representation) as defined by IETF RFC-8949, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-cbor

GoDoc

JSON versus 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.

Import

To import package cbor use import code like the following:

import "github.com/reiver/go-cbor"

Installation

To install package cbor do the following:

GOPROXY=direct go get https://github.com/reiver/go-cbor

Author

Package cbor was written by Charles Iliya Krempeaux

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(value any) ([]byte, error)

Types

type Marshaler

type Marshaler interface {
	MarshalCBOR() ([]byte, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL