Is there an easy way to go from a map to a struct and vice versa? e.g. going from: m := map[string]interface{}{"a": "x", "b": 5}
to an instance of: type T struct { A string B int } I can do this going through JSON (marshal the map, unmarshal into struct), but is there a more direct way? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAPKajN66dC1AzJ542v_W3St%2BytX186XAEJMybp3y0tBb%2BV-1Wg%40mail.gmail.com.