Registry / serialization / mailru-easyjson

mailru-easyjson

JSON →
library0.9.2gogounverified

Package easyjson contains marshaler/unmarshaler interfaces and helper functions.

go get github.com/mailru/easyjson
INSTALL
IMPORT
SIG · MAILRU-EASYJSON
M
mailru-easyjson
serializationgov0.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.

easyjson
github.com/mailru/easyjson

Marshal a struct to JSON using easyjson.

package main import ( "fmt" "github.com/mailru/easyjson" ) type User struct { Name string `json:"name"` } func main() { u := &User{Name: "Alice"} data, err := easyjson.Marshal(u) if err != nil { panic(err) } fmt.Println(string(data)) }
Debug
Known issues
gotchaeasyjson requires code generation for optimal performance; the package provides interfaces but not automatic generation.
fix
Run `easyjson -all <file>.go` to generate marshal/unmarshal methods.
affects: all
Upgrade
Version history
0.9.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
mailru-easyjson — go get mailru-easyjson · libregistry