github.com/tawesoft/golib/v2@v2.10.0/legacy/localize/doc.go (about) 1 // Package localize is an attempt at implementing locale-aware parsing of 2 // numbers, integrating with golang.org/x/text. 3 // 4 // This is the frozen version of the package previously at 5 // `tawesoft.co.uk/go/lxstrconv`. See [migration instructions]. 6 // 7 // Todo: 8 // 9 // - This is proof of concept and could be tidied up 10 // - Checks for integer overflow 11 // - Support different representations of negative numbers 12 // e.g. `(123)` vs `-123` 13 // - In cases where AcceptInteger/AcceptFloat reach a syntax error, they 14 // currently underestimate how many bytes they successfully parsed when 15 // the byte length of the string is not equal to the number of Unicode 16 // code points in the string. 17 // 18 // [migration instructions]: https://github.com/tawesoft/golib/blob/v2/MIGRATIONS.md#package-tawesoftcoukgooperator 19 package localize