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
Describe the bug Panic when parsing '0'(number without decimals) as a float type.
To Reproduce
const file = `foo = 0` // read from .toml file type Toml struct { Foo float64 `toml:"foo"` } t := &Toml{} err := toml.Unmarshal([]byte(file), t) fmt.Println(t, err) return
Expected behavior Normal output of TOML structure contents.
TOML
Versions
The text was updated successfully, but these errors were encountered:
Fix: Panic when parsing '0' using parseFloat (pelletier#886)
2868e96
bb026ca
No branches or pull requests
Describe the bug
Panic when parsing '0'(number without decimals) as a float type.
To Reproduce
Expected behavior
Normal output of
TOML
structure contents.Versions
The text was updated successfully, but these errors were encountered: