goini:golang读取ini配置文件
goini
##描述
使用goini更简单的读取go的ini配置文件以及根据特定格式的各种配置文件。
##安装方法
gp get github.com/widuu/goini
##使用方法
ini配置文件格式样列
[database]
username = root
password = password
hostname = localhost
[admin]
username = root
password = password
[nihao]
username = root
password = password
初始化
conf := goini.SetConfig("./conf/conf.ini") //goini.SetConfig(filepath) 其中filepath是你ini 配置文件的所在位置
获取单个配置信息
username := conf.GetValue("