摘要: github.com/spf13/viper 配置解决方案,支持 JSON/TOML/YAML/HCL/envfile/Java properties 等多种格式的配置文件 func main() { var config = "config.yaml" // 文件名及路径 v := viper.N 阅读全文
posted @ 2022-02-09 08:54 屁桃 阅读(115) 评论(0) 推荐(0) 编辑