github.com/caos/orbos@v1.5.14-0.20221103111702-e6cd0cea7ad4/internal/operator/nodeagent/dep/packages_string.go (about) 1 // Code generated by "stringer -type=Packages"; DO NOT EDIT. 2 3 package dep 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[UnknownPkg-0] 12 _ = x[DebianBased-1] 13 _ = x[REMBased-2] 14 } 15 16 const _Packages_name = "UnknownPkgDebianBasedREMBased" 17 18 var _Packages_index = [...]uint8{0, 10, 21, 29} 19 20 func (i Packages) String() string { 21 if i < 0 || i >= Packages(len(_Packages_index)-1) { 22 return "Packages(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 return _Packages_name[_Packages_index[i]:_Packages_index[i+1]] 25 }