mitchellh / mapstructure

Go library for decoding generic map values into native Go structures and vice versa.
https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc
MIT License
7.93k stars 677 forks source link

does mapstructure not support key word `inline` like json tag #262

Closed nonbutAworker closed 2 years ago

nonbutAworker commented 2 years ago

hello

input is map[string]interface{} result is struct contain anonymous struct

type result struct{
        key int 
        inlines
}

type inlines struct{
       key2 int
}

code like this will ignore anonymous struct

if err := mapstructure.Decode(input, &result); err != nil {
        return nil
    }

i searched in this repository for key word inline ,bu i got result like that: image

i wonder if mapstructure really not support inline tag or i am missing something important...