IsNumeric returns true iff this type is an integer, float, or decimal.
()
| 2864 | |
| 2865 | // IsNumeric returns true iff this type is an integer, float, or decimal. |
| 2866 | func (t *T) IsNumeric() bool { |
| 2867 | switch t.Family() { |
| 2868 | case IntFamily, FloatFamily, DecimalFamily: |
| 2869 | return true |
| 2870 | default: |
| 2871 | return false |
| 2872 | } |
| 2873 | } |
| 2874 | |
| 2875 | var EnumValueNotFound = errors.New("could not find enum value") |
| 2876 |