flw-cn / go-smartconfig Goto Github PK
View Code? Open in Web Editor NEW这是一个「零配置」的配置文件加载模块和命令行参数处理模块
License: GNU General Public License v3.0
这是一个「零配置」的配置文件加载模块和命令行参数处理模块
License: GNU General Public License v3.0
比如:
type ModuleBaseConfig struct {
OptionA string
}
type ModuleConfig struct {
ModuleBaseConfig
OptionB string
...
}
type MainConfig struct {
Debug bool
Foo ModuleConfig
}
此时命令行就必须写 --foo.modulebaseconfig.optiona
,这样不友好。
看上去似乎 foo -h
执行了 foo --help
的功能,但是:
foo -h
还是 foo --help
,给出的帮助界面都没有显示出 -h
,似乎变成了一个隐藏参数。foo --help
只打印帮助信息然后退出,而 foo -h
虽然打印了帮助信息,但是并没有退出。怀疑这里存在 BUG。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.