项目地址
github.com/spf13/viper
安装
go get github.com/spf13/viper
配置文件
aaa.yaml
: : : : :
简单使用
( ) (){ : () () : () { () } :() (,,) : () (,,) }
通过struct接收
( ) { } { } (){ : () () : () { () } : {} () { (()) () } () }
- 本文固定链接: https://phpmianshi.com/?id=4890
- 转载请注明: admin 于 PHP面试网 发表
《本文》有 0 条评论