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
Is your feature request related to a problem? Please describe. I would like more supported types for default values, so that the following code works:
type color struct { R, G, B uint `default:"128"` } tree, _ := toml.Load("") var c color err := tree.Unmarshal(&c) if err != nil { fmt.Println("unmarshal error:", err) }
Now it only produces this error:
unmarshal error: unsupported field type for default option
Describe the solution you'd like Add more supported types.
The text was updated successfully, but these errors were encountered:
Add more supported default values types for unmarshaling (#392)
3478219
Fixes #391
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
I would like more supported types for default values, so that the following code works:
Now it only produces this error:
Describe the solution you'd like
Add more supported types.
The text was updated successfully, but these errors were encountered: