-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install & readme ERROR #1
Comments
For the current newest version Why appending a Principle of Work:
Notice:
So you can just do it like this: import "github.com/xgfone/gconf/v5"
// 1. Define some options.
var opts = []gconf.Opt{
gconf.StrOpt("opt1", "help doc").D("value1"),
gconf.IntOpt("opt2", "help doc").D(123),
// .......
}
// 2. Add the options into the global `Config`, but you can create and use a new one.
gconf.RegisterOpts(opts...)
// 3. Load the sources and set the options.
gconf.LoadSource(gconf.NewFlagSource()) // Read the Command Line Arguments and set the option values.
gconf.LoadSource(gconf.NewEnvSource()) // Read the environments and set the option values. For your questions, you only need to implement the
So you can do it as follow. gconf.AddDecoder(NewNginxDecoder())
gconf.LoadSource(gconf.NewFileSource("/path/to/nginx.conf", "nginx")) In order to decode the For |
Because of the limit of |
I use
go get github.com/xgfone/gconf/v5
Replaced the
go get -u github.com/xgfone/gconf/v5
then successful installation,
and in readme.md,
import "github.com/xgfone/gconf/v5"
maybe should
import "github.com/xgfone/gconf"
?By the way , can this package parser nginx/apache/redis conf file?
I am very interested in your package ,but :{ ,i did't find document,
The text was updated successfully, but these errors were encountered: