Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Golang 和 Viper 库将 viper.unmarshal(&c) 和一个 snake_case 字段:
CryptoId string `json:"crypto_id"`
目前我得到“”空值。
解决了这个
CryptoId string `mapstructure:"crypto_id"`
使用 Golang Viper 读取一片地图