/parseConfig

使用 spf13/viper 来获取并解析配置文件

Primary LanguageGo

viper 解析多种格式的配置文件

viper 地址

https://github.com/spf13/viper

安装 viper

go get github.com/spf13/viper

滴滴开源的 json 解析包

https://github.com/json-iterator/go

viper 解析 json 参考地址

https://www.cnblogs.com/jiujuan/p/13799976.html
https://cloud.tencent.com/developer/article/1610531
https://zhuanlan.zhihu.com/p/105956945

viper 解析 yaml 参考地址

https://www.cnblogs.com/kainhuck/p/13288512.html