{"id":65090,"library":"uber-go-mapdecode","title":"Map Decode","description":"Decodes generic interface{} values (e.g., from YAML/JSON) into Go structs using a single Decode implementation.","status":"active","version":"1.0.0","language":"go","source_language":null,"source_url":"https://github.com/uber-go/mapdecode","tags":["decoding","yaml","json","struct","uber"],"install":[{"cmd":"go get github.com/uber-go/mapdecode","lang":"bash","label":"Install github.com/uber-go/mapdecode"}],"dependencies":[],"imports":[{"symbol":"mapdecode","correct":"github.com/uber-go/mapdecode"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/uber-go/mapdecode\"\n)\n\ntype Config struct {\n\tName string `mapdecode:\"name\"`\n\tAge  int    `mapdecode:\"age\"`\n}\n\nfunc main() {\n\tinput := map[string]interface{}{\"name\": \"Alice\", \"age\": 30}\n\tvar cfg Config\n\tif err := mapdecode.Decode(&cfg, input); err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"%+v\\n\", cfg)\n}","lang":"go","description":"Decode a map into a struct"},"warnings":[],"env_vars":null,"search_vec":"'decod':2,3,16,18 'e.g':7 'generic':4 'go':11 'implement':17 'interfac':5 'json':20 'map':1 'singl':15 'struct':12,21 'uber':22 'use':13 'valu':6 'yaml':19 'yaml/json':9","created_at":"2026-06-17T17:04:30.838790+00:00","updated_at":"2026-06-17T17:04:30.838790+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/uber-go/mapdecode","github":"https://github.com/uber-go/mapdecode","docs":"https://pkg.go.dev/github.com/uber-go/mapdecode#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}