Debian Codegraph @

attribute/type_string.go

raw
1 // Code generated by "stringer -type=Type"; DO NOT EDIT.
2
3 package attribute
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[EMPTY-0]
12 _ = x[BOOL-1]
13 _ = x[INT64-2]
14 _ = x[FLOAT64-3]
15 _ = x[STRING-4]
16 _ = x[BOOLSLICE-5]
17 _ = x[INT64SLICE-6]
18 _ = x[FLOAT64SLICE-7]
19 _ = x[STRINGSLICE-8]
20 }
21
22 const _Type_name = "EMPTYBOOLINT64FLOAT64STRINGBOOLSLICEINT64SLICEFLOAT64SLICESTRINGSLICE"
23
24 var _Type_index = [...]uint8{0, 5, 9, 14, 21, 27, 36, 46, 58, 69}
25
26 func (i Type) String() string {
27 idx := int(i) - 0
28 if i < 0 || idx >= len(_Type_index)-1 {
29 return "Type(" + strconv.FormatInt(int64(i), 10) + ")"
30 }
31 return _Type_name[_Type_index[idx]:_Type_index[idx+1]]
32 }