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
This was unexpected behavior for me. I imagine it has to do with JSON/yaml parsing support.
Perhaps documentation is all that's needed.
package main import ( "fmt" "github.com/segmentio/conf" ) type config struct { Name string `conf:"name" help:"set me please"` } func main() { c := config{} conf.Load(&c) fmt.Println(c) }
abraithwaite at alan-mbpr in ~GOPATH/src/github.com/segmentio 10:57:05 $ go run play.go -name null {}
The text was updated successfully, but these errors were encountered:
It does indeed.
Was your expectation that the name would be set to the string null?
null
Sorry, something went wrong.
For flags at least yeah. Maybe this is also related to the other issue with : in env vars and cli args?
:
No branches or pull requests
This was unexpected behavior for me. I imagine it has to do with JSON/yaml parsing support.
Perhaps documentation is all that's needed.
The text was updated successfully, but these errors were encountered: