Closed jmank88 closed 2 years ago
Thank you for reporting this!
Merged https://github.com/pelletier/go-toml/commit/85bfc0ed5117cb316bbbcd9e65ecfcb95419be88. It prevents the asymmetry problem you pointed out by preventing uint64 > maxInt64 to be encoded.
Thank you again for reporting since and driving the discussion to improve the library!
Describe the bug Attempting to unmarshal a value a larger than
math.MaxInt64
results in avalue out of range
error fromstrconv.ParseInt
, even when the target field is auint64
.To Reproduce https://go.dev/play/p/L_zgsE-vlAl
Expected behavior I expected the full range of
uint64
values to be supported.Versions