github.com/Mrs4s/go-cqhttp@v1.2.0/pkg/onebot/kind_string.go (about) 1 // Code generated by "stringer -type=Kind -trimprefix=Kind"; DO NOT EDIT. 2 3 package onebot 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[KindAny-0] 12 _ = x[KindBool-1] 13 _ = x[KindDuration-2] 14 _ = x[KindFloat64-3] 15 _ = x[KindInt64-4] 16 _ = x[KindString-5] 17 _ = x[KindTime-6] 18 _ = x[KindUint64-7] 19 _ = x[KindGroup-8] 20 } 21 22 const _Kind_name = "AnyBoolDurationFloat64Int64StringTimeUint64Group" 23 24 var _Kind_index = [...]uint8{0, 3, 7, 15, 22, 27, 33, 37, 43, 48} 25 26 func (i Kind) String() string { 27 if i < 0 || i >= Kind(len(_Kind_index)-1) { 28 return "Kind(" + strconv.FormatInt(int64(i), 10) + ")" 29 } 30 return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] 31 }