Registry / serialization / shamaton-msgpack

shamaton-msgpack

JSON →
library1.2.1gogounverified

Package msgpack provides encoding and decoding of MessagePack binary format for Go data structures.

go get github.com/shamaton/msgpack
INSTALL
IMPORT
SIG · SHAMATON-MSGPACK
S
shamaton-msgpack
serializationgov1.2.1
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.

msgpack
github.com/shamaton/msgpack

Marshals and unmarshals a struct using MessagePack.

package main import ( "fmt" "github.com/shamaton/msgpack" ) func main() { type Person struct { Name string Age int } p := Person{Name: "Alice", Age: 30} b, err := msgpack.Marshal(p) if err != nil { panic(err) } var p2 Person err = msgpack.Unmarshal(b, &p2) if err != nil { panic(err) } fmt.Println(p2) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
shamaton-msgpack — go get shamaton-msgpack · libregistry