DRISL CBOR implementation in Go.
dasl cbor drisl
README.md

Go-CBOR #

DRISL CBOR implementation in Go.

Usage #

go get -u anhgelus.world/go-cbor

Defining a struct that can be marshaled into CBOR:

type Foo struct {
	Bar string `cbor:"bar"`
}

Marshal a struct:

b, err := cbor.Marshal(Foo{Bar: "hello world"})

Unmarshal a struct:

var foo Foo
err = cbor.Unmarshal(b, &foo)