goconfig:GoConfig通过软件包“ config”提供了简单配置文件的解析

时间:2021-05-11 00:03:56
【文件属性】:
文件名称:goconfig:GoConfig通过软件包“ config”提供了简单配置文件的解析
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-11 00:03:56
Go goconfig为简单的配置文件提供了解析。 配置应采用以下格式: [ sectionName ] key1 = some value key2 = some other value # we want to explain the importance and great forethought # in this next value. key3 = unintuitive value [ anotherSection ] key1 = a value key2 = yet another value key3 = " This value is quoted as we want to begin with a space." #... 空行将被跳过,以#开头的行被视为要跳过的注释。 带有节标记('[]')而没有节名称的错误。 key = lines将把该行设置为空白值。 如果未
【文件预览】:
goconfig-master
----doc.go(3KB)
----config_test.go(3KB)
----.travis.yml(14B)
----LICENSE(747B)
----testdata()
--------test.conf(343B)
--------test2.conf(67B)
--------bad.conf(30B)
----README.md(1KB)
----config.go(6KB)

网友评论