Registry / serialization / goinggo-mapstructure

goinggo-mapstructure

JSON →
library0.0.0-20140717182941-194205d9b4a9gogounverified

Converts arbitrary map[string]interface{} into native Go structures, supporting nested maps and slices.

go get github.com/goinggo/mapstructure
INSTALL
IMPORT
SIG · GOINGGO-MAPSTRUCTU
G
goinggo-mapstructure
serializationgov0.0.0-20140717182941-194205d9b4a9
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.

mapstructure
github.com/goinggo/mapstructure

Decode a map into a Go struct.

package main import ( "fmt" "github.com/goinggo/mapstructure" ) type Person struct { Name string Age int } func main() { input := map[string]interface{}{"name": "Alice", "age": 30} var p Person mapstructure.Decode(input, &p) fmt.Println(p) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20140717182941-194205d9b4a9latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
goinggo-mapstructure — go get goinggo-mapstructure · libregistry