Joey Armstrong | e8c091f | 2023-01-17 16:56:26 -0500 | [diff] [blame] | 1 | // Code generated by "stringer -type=NumberKind"; DO NOT EDIT. |
| 2 | |
| 3 | package metric |
| 4 | |
| 5 | import "strconv" |
| 6 | |
| 7 | func _() { |
| 8 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 9 | // Re-run the stringer command to generate them again. |
| 10 | var x [1]struct{} |
| 11 | _ = x[Int64NumberKind-0] |
| 12 | _ = x[Float64NumberKind-1] |
| 13 | } |
| 14 | |
| 15 | const _NumberKind_name = "Int64NumberKindFloat64NumberKind" |
| 16 | |
| 17 | var _NumberKind_index = [...]uint8{0, 15, 32} |
| 18 | |
| 19 | func (i NumberKind) String() string { |
| 20 | if i < 0 || i >= NumberKind(len(_NumberKind_index)-1) { |
| 21 | return "NumberKind(" + strconv.FormatInt(int64(i), 10) + ")" |
| 22 | } |
| 23 | return _NumberKind_name[_NumberKind_index[i]:_NumberKind_index[i+1]] |
| 24 | } |