| 1 |
// Code generated by "stringer -type=Kind -trimprefix=Kind"; DO NOT EDIT. |
| 2 |
|
| 3 |
package log |
| 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[KindEmpty-0] |
| 12 |
_ = x[KindBool-1] |
| 13 |
_ = x[KindFloat64-2] |
| 14 |
_ = x[KindInt64-3] |
| 15 |
_ = x[KindString-4] |
| 16 |
_ = x[KindBytes-5] |
| 17 |
_ = x[KindSlice-6] |
| 18 |
_ = x[KindMap-7] |
| 19 |
} |
| 20 |
|
| 21 |
const _Kind_name = "EmptyBoolFloat64Int64StringBytesSliceMap" |
| 22 |
|
| 23 |
var _Kind_index = [...]uint8{0, 5, 9, 16, 21, 27, 32, 37, 40} |
| 24 |
|
| 25 |
func (i Kind) String() string { |
| 26 |
idx := int(i) - 0 |
| 27 |
if i < 0 || idx >= len(_Kind_index)-1 { |
| 28 |
return "Kind(" + strconv.FormatInt(int64(i), 10) + ")" |
| 29 |
} |
| 30 |
return _Kind_name[_Kind_index[idx]:_Kind_index[idx+1]] |
| 31 |
} |