(val reflect.Value, kind reflect.Kind)
| 271 | } |
| 272 | |
| 273 | func IsValidIntString(val reflect.Value, kind reflect.Kind) bool { |
| 274 | if kind != reflect.String { |
| 275 | return false |
| 276 | } |
| 277 | _, e := strconv.ParseInt(fmt.Sprintf("%v", val.Interface()), 10, 64) |
| 278 | |
| 279 | return e == nil |
| 280 | } |
| 281 | |
| 282 | func IsValidFloatString(val reflect.Value, kind reflect.Kind) bool { |
| 283 | if kind != reflect.String { |
no outgoing calls
no test coverage detected
searching dependent graphs…