We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
c := rest.RestConf{ ServiceConf: service.ServiceConf{ Name: "foo", Log: logx.LogConf{ Encoding: "plain", }, }, Host: "127.0.0.1", Port: 443, } err := conf.FillDefault(&c) fmt.Println(err) fmt.Println(c.Name) fmt.Println(c.Host) fmt.Println(c.Port) fmt.Println(c.Mode) fmt.Println(c.Log.Encoding) fmt.Println(c.Log.Mode)
output
set the default value, "Name" must be zero foo 127.0.0.1 443 plain
Merge existing ones instead of throwing an exception
”set the default value, "Name" must be zero“
The text was updated successfully, but these errors were encountered:
FillDefault first, then set the specific values.
Sorry, something went wrong.
ok!
No branches or pull requests
output
Merge existing ones instead of throwing an exception
”set the default value, "Name" must be zero“
The text was updated successfully, but these errors were encountered: