摘要: 一、Viper包用法 // 配置文件解析到对象里面去 type Options struct { // 对应yaml的mysql (Mysql--转成小写对应) MySQL struct { Host string Password string } // 对应yaml的web Web struct 阅读全文
posted @ 2021-07-09 01:09 taotaozh 阅读(824) 评论(0) 推荐(0)