Registry / serialization / algorand-go-codec-codec

algorand-go-codec-codec

JSON →
library1.1.10gogounverified

Package codec provides a high performance, feature-rich idiomatic Go codec/encoding library for binc, msgpack, cbor, and json.

go get github.com/algorand/go-codec/codec
INSTALL
IMPORT
SIG · ALGORAND-GO-CODEC-
A
algorand-go-codec-codec
serializationgov1.1.10
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.

codec
github.com/algorand/go-codec/codec

Creates a JSON handle and encoder.

package main import ( "fmt" "github.com/algorand/go-codec/codec" ) func main() { type Foo struct { Bar string } var h codec.Handle = new(codec.JsonHandle) var enc *codec.Encoder = codec.NewEncoder(nil, h) _ = enc fmt.Println("codec ready") }
Debug
Known issues
gotchaThe Handle is not safe for concurrent modification; only concurrent reads are safe.
fix
Use separate Handles per goroutine if modifying, or synchronize access.
affects: >=1.0.0
Upgrade
Version history
1.1.10latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
1
Resources
algorand-go-codec-codec — go get algorand-go-codec-codec · libregistry