(value string)
| 97 | } |
| 98 | |
| 99 | func strParseFloat32(value string) (float32, error) { |
| 100 | result, err := strconv.ParseFloat(value, 32) |
| 101 | if err != nil { |
| 102 | return 0, err |
| 103 | } |
| 104 | |
| 105 | return float32(result), nil |
| 106 | } |
| 107 | |
| 108 | func strParseFloat64(value string) (float64, error) { |
| 109 | result, err := strconv.ParseFloat(value, 64) |
no outgoing calls
no test coverage detected
searching dependent graphs…