Registry / serialization / tinylib-msgp

tinylib-msgp

JSON →
library1.6.4gogounverified

msgp is a code generation tool for creating methods to serialize and deserialize Go data structures to and from MessagePack.

go get github.com/tinylib/msgp
INSTALL
IMPORT
SIG · TINYLIB-MSGP
T
tinylib-msgp
serializationgov1.6.4
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.

msgp
github.com/tinylib/msgp

Generate MessagePack serialization methods for a struct using the msgp tool.

package main import ( "fmt" "github.com/tinylib/msgp/msgp" ) func main() { // msgp generates MarshalMsg/UnmarshalMsg methods; example uses generated code type MyStruct struct { Name string `msg:"name"` Age int `msg:"age"` } // After running `msgp -file=main.go`, you can marshal/unmarshal _ = MyStruct{} fmt.Println("Run 'msgp -file=main.go' to generate serialization methods") }
Debug
Known issues
gotchaThe msgp tool must be run separately to generate code; it is not a runtime-only library.
fix
Install the tool with 'go install github.com/tinylib/msgp@latest' and run it on your package.
affects: >=0.0.0
Upgrade
Version history
1.6.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources