While parsing output from some third-party program, I discovered that time.ParseDuration <https://pkg.go.dev/time#ParseDuration> does not accept inputs expressed in scientific notation even though strconv.ParseFloat <https://pkg.go.dev/strconv#ParseFloat> does accept such inputs. Here’s an playground example demonstrating this limitation: https://go.dev/play/p/G-1FveHxpZ3.
Any chance ParseDuration could be enhanced to accept the same numerical values as ParseFloat? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9db5c71a-581f-4dee-b8ab-6828b15972a9n%40googlegroups.com.