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
Quoting from the documentation of func StringToStringVar:
func StringToStringVar
The value of each argument will not try to be separated by comma.
However with the following program:
res := make(map[string]string) flag.StringToStringVar(&res, "foo-flag", res, "foo-flag-usage") flag.Parse()
go run ... --foo-flag "foo=bar,baz=quux" results in res = map[baz:quux foo:bar].
go run ... --foo-flag "foo=bar,baz=quux"
res = map[baz:quux foo:bar]
The text was updated successfully, but these errors were encountered:
I'm happy to submit a PR for this if needed.
Sorry, something went wrong.
No branches or pull requests
Quoting from the documentation of
func StringToStringVar
:However with the following program:
go run ... --foo-flag "foo=bar,baz=quux"
results inres = map[baz:quux foo:bar]
.The text was updated successfully, but these errors were encountered: