Closed nonbutAworker closed 2 years ago
hello
input is map[string]interface{} result is struct contain anonymous struct
input
result
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:
inline
i wonder if mapstructure really not support inline tag or i am missing something important...
hello
input
is map[string]interface{}result
is struct contain anonymous structcode like this will ignore anonymous struct
i searched in this repository for key word
inline
,bu i got result like that:i wonder if mapstructure really not support
inline
tag or i am missing something important...