项目
在 GitHub 查看 Config
olebedev/config
关于
为 JSON 或 YAML 配置提供便捷访问方法的封装库。
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Config

Package config provides convenient access methods to configuration stored as JSON or YAML.
This is a fork of the original version. This version extends the functionality of the original without losing compatibility. Major features added:
Set(path string, value interface{}) errormethodEnv() *config.Configmethod, for OS environment variables parsingFlag() *config.Configmethod, for command line arguments parsing usign pkg/flag singletonArgs(args ...string) *config.Configmethod, for command line arguments parsingU*methodsCopy(...path) (*config.config, error)methodExtend(*config.Config) (*config.Config, error)methodError() errormethod to show last parsing error, works only with.Args()method
Example and more information you can find here.
探索相关项目
加载中…