How to viper.unmarshal(&c) with Golang and Viper library a snake_case fields:
CryptoId string `json:"crypto_id"`
Currently I'm getting "" empty value.
How to viper.unmarshal(&c) with Golang and Viper library a snake_case fields:
CryptoId string `json:"crypto_id"`
Currently I'm getting "" empty value.
Solved with this
CryptoId string `mapstructure:"crypto_id"`