mapstructure
mapstructure copied to clipboard
Go library for decoding generic map values into native Go structures and vice versa.
Looking to use mapstructure in a project, I figured I'd add some static scanning
Hi, i'm just trying to decode a map into a struct with uuid but it looks like its not working out of the box. So is there a trick to...
Hey! Let's suppose I have a customer container acting a bit like a map and I provide a hook to decode it. For the hook to convert a map to...
func TestIssue299(t *testing.T) { var a []interface{} inputStringSlice := map[string]interface{}{ "vfoo": "foo", "vbar": a, } var result = Slice{ Vfoo: "a", Vbar: []string{"a", "b"}, } config := &DecoderConfig{ Metadata: nil,...
Resolves #239 Added new base error type with path to the field which causes error. Field path representation structure also added, it is used instead of string field name. This...
Hey folks ;) I think it would be nice if mapstructure would support an unmarshaling interface like for the json module, so custom marshalers can be defined on a per-type...
Although came across this when using viper, I believe this is a `mapstructure` issue I am defining a slice flag as follows ```go fs.StringArray(name, sliceValue, help) ``` where `sliceValue: =...
Hi! What do you think about the possibility of adding prefix support while squashing structs? Example: ```go type Bitbucket struct { Token config.Secret `mapstructure:"token"` } type GitHub struct { Token...
Hi, thanks for the work you've done on this project. One thing I've been struggling to do is run a function on the decoded value. I've got two use cases...
I am trying to use mapstruct to update one of the structs all fields at a time. Basically, I got a couple of MQTT subscriptions, and when one subscription arrives,...