【文件属性】:
文件名称:go-config:Go的配置文件加载器
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-20 10:15:38
go yaml toml json configuration
去配置
go-config是一个配置加载程序包。
参见 。
合并环境配置
merge-env-config是用于处理模板文件的cli工具。
例如:
{
"name": "some function name",
"description": "some description",
"environment": {
"account_id": "{{ must_env `SOME_MUST_ACCOUNT_ID` }}",
"secret_key": "{{ env `SOME_SECRET_KEY` }}"
}
}
$ SOME_MUST_ACCOUNT_ID=must_account_id SOME_SECRET_KEY=some_secret_key merge-env-config -json function
【文件预览】:
go-config-master
----.gitignore(285B)
----README.md(845B)
----delims_test.go(428B)
----.github()
--------workflows()
--------dependabot.yml(145B)
----data_test.go(426B)
----tests()
--------foo.yaml(9B)
--------empty.yaml(0B)
----LICENSE(1KB)
----go.mod(179B)
----funcs_test.go(563B)
----config.go(8KB)
----json_test.go(1KB)
----go.sum(1KB)
----config_test.go(8KB)
----Makefile(798B)
----cmd()
--------merge-env-config()