首页 > TAG信息列表 > viperCfg

[go-每日一库] golang viper实现动态配置更新

viper库下载: go get -u github.com/spf13/viper 代码结构: . +--- config | +--- config.go | +--- config.yaml +--- go.mod +--- go.sum +--- main.go config.yaml app: app1: timeout: 120 rpc: true compatible: true mysql: host: localhost port: 3