(s string)
| 527 | } |
| 528 | |
| 529 | func parseFloat(s string) (float64, error) { |
| 530 | // Keep to pre-Go 1.13 float formats. |
| 531 | if strings.ContainsAny(s, "pP_") { |
| 532 | return 0, errors.New("unsupported character in float") |
| 533 | } |
| 534 | return strconv.ParseFloat(s, 64) |
| 535 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…