rclone/fs/config/configstruct
Nick Craig-Wood c156716d01 configstruct: fix parsing of invalid booleans in the config
Apparently fmt.Sscanln doesn't parse bool's properly and this isn't
likely to be fixed by the Go team who regard sscanf as a mistake.

This only uses sscan for integers and uses the correct routine for
everything else.

This also implements parsing time.Duration

See: https://github.com/golang/go/issues/43306
2024-07-15 11:09:54 +01:00
..
configstruct.go configstruct: fix parsing of invalid booleans in the config 2024-07-15 11:09:54 +01:00
configstruct_test.go configstruct: fix parsing of invalid booleans in the config 2024-07-15 11:09:54 +01:00
internal_test.go configstruct: fix parsing of invalid booleans in the config 2024-07-15 11:09:54 +01:00