Registry / serialization / fxamacker-cbor-v2

fxamacker-cbor-v2

JSON →
library2.9.2gogounverified

Package cbor is a modern CBOR codec (RFC 8949 & RFC 8742) with CBOR tags, Go struct tag options, Core Deterministic Encoding, CTAP2, Canonical CBOR, float64->32->16, and duplicate map key detection.

go get github.com/fxamacker/cbor/v2
INSTALL
IMPORT
SIG · FXAMACKER-CBOR-V2
F
fxamacker-cbor-v2
serializationgov2.9.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cbor
github.com/fxamacker/cbor/v2

Marshals and unmarshals a map to/from CBOR.

package main import ( "fmt" "github.com/fxamacker/cbor/v2" ) func main() { data, _ := cbor.Marshal(map[string]int{"a": 1}) var result map[string]int cbor.Unmarshal(data, &result) fmt.Println(result) }
Debug
Known issues
breakingv2 has breaking API changes from v1, including removal of deprecated functions.
fix
Update import path to github.com/fxamacker/cbor/v2 and adjust code for new API.
affects: >=2.0.0
Upgrade
Version history
2.9.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
fxamacker-cbor-v2 — go get fxamacker-cbor-v2 · libregistry