github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/privilege/kind_string.go (about) 1 // Code generated by "stringer -type=Kind"; DO NOT EDIT. 2 3 package privilege 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[ALL-1] 12 _ = x[CREATE-2] 13 _ = x[DROP-3] 14 _ = x[GRANT-4] 15 _ = x[SELECT-5] 16 _ = x[INSERT-6] 17 _ = x[DELETE-7] 18 _ = x[UPDATE-8] 19 _ = x[ZONECONFIG-9] 20 } 21 22 const _Kind_name = "ALLCREATEDROPGRANTSELECTINSERTDELETEUPDATEZONECONFIG" 23 24 var _Kind_index = [...]uint8{0, 3, 9, 13, 18, 24, 30, 36, 42, 52} 25 26 func (i Kind) String() string { 27 i -= 1 28 if i >= Kind(len(_Kind_index)-1) { 29 return "Kind(" + strconv.FormatInt(int64(i+1), 10) + ")" 30 } 31 return _Kind_name[_Kind_index[i]:_Kind_index[i+1]] 32 }