{"id":50712,"library":"fxamacker-cbor-v2","title":"fxamacker/cbor v2","description":"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.","status":"active","version":"2.9.2","language":"go","source_language":null,"source_url":"https://github.com/fxamacker/cbor","tags":["cbor","codec","serialization","rfc8949","rfc8742"],"install":[{"cmd":"go get github.com/fxamacker/cbor/v2","lang":"bash","label":"Install github.com/fxamacker/cbor/v2"}],"dependencies":[],"imports":[{"symbol":"cbor","correct":"github.com/fxamacker/cbor/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/fxamacker/cbor/v2\"\n)\n\nfunc main() {\n\tdata, _ := cbor.Marshal(map[string]int{\"a\": 1})\n\tvar result map[string]int\n\tcbor.Unmarshal(data, &result)\n\tfmt.Println(result)\n}","lang":"go","description":"Marshals and unmarshals a map to/from CBOR."},"warnings":[{"fix":"Update import path to github.com/fxamacker/cbor/v2 and adjust code for new API.","message":"v2 has breaking API changes from v1, including removal of deprecated functions.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'16':29 '32':28 '8742':13 '8949':11 'canon':25 'cbor':4,8,15,26,35 'codec':9,36 'core':21 'ctap2':24 'detect':34 'determinist':22 'duplic':31 'encod':23 'float64':27 'fxamacker/cbor':1 'go':17 'key':33 'map':32 'modern':7 'option':20 'packag':3 'rfc':10,12 'rfc8742':39 'rfc8949':38 'serial':37 'struct':18 'tag':16,19 'v2':2","created_at":"2026-06-15T05:06:01.419620+00:00","updated_at":"2026-06-15T05:06:01.419620+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/fxamacker/cbor","github":"https://github.com/fxamacker/cbor","docs":"https://pkg.go.dev/github.com/fxamacker/cbor/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}