parseConfig:Golang写的json配置文件解析工具

时间:2021-04-29 00:12:49
【文件属性】:
文件名称:parseConfig:Golang写的json配置文件解析工具
文件大小:2KB
文件格式:ZIP
更新时间:2021-04-29 00:12:49
Go 配置文件解析工具 悟空 安装 go get github.com/akkuman/parseConfig 使用说明 环境假设 . ├── config.go ├── config.json config.json内容 { "name" : "akkuman", "urls" : ["xx.com","ww.com"], "info" : { "qq" : "123456", "weixin": "123456" } } 该库取出来的都是类型为interface{}的数据,如需取出具体类型的数据需要自己加断言 当取嵌套map数据的时候,以“ > ”指定下一级,注意>两边均有空格,具体见下面的例子 例子 config.go内容 package main import ( "github.com/akkuman/parseC
【文件预览】:
parseConfig-master
----test.md(9B)
----parseConfig.go(1023B)
----README.md(1KB)

网友评论