read from yaml config file some struct item is null #1067
-
type ConfYaml struct { type mqttSection struct { i use like this: WRITETOLOG is false must is true why ??? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Take a look at https://github.com/spf13/viper#unmarshaling-doesnt-work |
Beta Was this translation helpful? Give feedback.
-
I change my struct maping(add mapstructure key words) like this: but |
Beta Was this translation helpful? Give feedback.
-
thanks ,i add mapstructure key word in struct item ,it is ok |
Beta Was this translation helpful? Give feedback.
Take a look at https://github.com/spf13/viper#unmarshaling-doesnt-work