8000
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
package main import ( "fmt" "gopkg.in/gcfg.v1" ) type Config struct { Settings struct { Enabled bool } } func main() { var config Config err := gcfg.ReadStringInto(&config, "[Settings]\nEnabled = xxx\n") fmt.Printf("read gave: %#v; %s\n", config, err) }
$ go run parse.go read gave: main.Config{Settings:struct { Enabled bool }{Enabled:false}}; failed to parse bool `xxx`
The error message should include information identifying the section and field that caused the error. In this case, maybe:
read gave: main.Config{Settings:struct { Enabled bool }{Enabled:false}}; failed to parse bool `xxx` into Settings.Enabled
The text was updated successfully, but these errors were encountered:
Sorry for the delay. Very valid point. Will implement it shortly.
Sorry, something went wrong.
298b7a6
Inject section after comments if file only has comments in it (go-gcf…
4eeb29a
…g#11) * Move file's comments to section if no sections when calling InjectField * Preamble will be unrelated to what we're injecting so leave a gap
No branches or pull requests
The error message should include information identifying the section and field that caused the error. In this case, maybe:
The text was updated successfully, but these errors were encountered: