GO语言: 读取配置文件的方式toml
最近go语言项目中用到读取配置文件,如下:使用这个"github.com/BurntSushi/toml" 配置文件如下:conf.toml# id
ID = 1
# name
Name = "name1"
# weight
Weight = 1.7
# books
Books = ["a", "b", "c"]
Sex = true
#friend Friend都可以
[friend]
Age...
原创
2017-02-14 15:40:56 ·
10089 阅读 ·
0 评论