Debian Codegraph @

api/types/loadrestrictions_string.go

raw
1 // Code generated by "stringer -type=LoadRestrictions"; DO NOT EDIT.
2
3 package types
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[LoadRestrictionsUnknown-0]
12 _ = x[LoadRestrictionsRootOnly-1]
13 _ = x[LoadRestrictionsNone-2]
14 }
15
16 const _LoadRestrictions_name = "LoadRestrictionsUnknownLoadRestrictionsRootOnlyLoadRestrictionsNone"
17
18 var _LoadRestrictions_index = [...]uint8{0, 23, 47, 67}
19
20 func (i LoadRestrictions) String() string {
21 if i < 0 || i >= LoadRestrictions(len(_LoadRestrictions_index)-1) {
22 return "LoadRestrictions(" + strconv.FormatInt(int64(i), 10) + ")"
23 }
24 return _LoadRestrictions_name[_LoadRestrictions_index[i]:_LoadRestrictions_index[i+1]]
25 }