This message was deleted.
# general
m
This message was deleted.
r
I mean, manually converting the traits
map[string]interface{}
into a struct isn't a big problem... maybe that's just the way to go
r
This is generally a silly go thing (really other languages too) Afaik the shortest way to natively do it is to convert it to json and parse it into the struct, or you could use https://github.com/mitchellh/mapstructure
r
yeah, indeed
thanks, I wasn't aware of that pkg
I ended up doing something very simple also because I don't expect this to happen a lot in the typical projects I work on