Registry / serialization / uber-go-mapdecode

uber-go-mapdecode

JSON →
library1.0.0gogounverified

Decodes generic interface{} values (e.g., from YAML/JSON) into Go structs using a single Decode implementation.

go get github.com/uber-go/mapdecode
INSTALL
IMPORT
SIG · UBER-GO-MAPDECODE
U
uber-go-mapdecode
serializationgov1.0.0
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.

mapdecode
github.com/uber-go/mapdecode

Decode a map into a struct

package main import ( "fmt" "github.com/uber-go/mapdecode" ) type Config struct { Name string `mapdecode:"name"` Age int `mapdecode:"age"` } func main() { input := map[string]interface{}{"name": "Alice", "age": 30} var cfg Config if err := mapdecode.Decode(&cfg, input); err != nil { panic(err) } fmt.Printf("%+v\n", cfg) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
uber-go-mapdecode — go get uber-go-mapdecode · libregistry