configo
configo copied to clipboard
Configo is a go library to parse toml configuration using struct tags
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20190318195719-6c81ef8f67ca to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20190313024323-a1f597ede03a to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20190320064053-1272bf9dcd53 to 0.7.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
通过在`flag.Parse()` 之前调用 `configo.AddFlags()` 方法,即可实现将配置文件中的参数添加到flag中,从而可以通过命令行设置配置文件参数。
Export the `applyDefault` function as `ApplyDefault`. It is useful to build an object with default configurations. ```go // now the default is an object initialized by empty values. default :=...