Closed ocean2811 closed 11 months ago
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
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