github.com/quay/claircore@v1.5.28/archop_string.go (about) 1 // Code generated by "stringer -type=ArchOp -linecomment"; DO NOT EDIT. 2 3 package claircore 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[opInvalid-0] 12 _ = x[OpEquals-1] 13 _ = x[OpNotEquals-2] 14 _ = x[OpPatternMatch-3] 15 } 16 17 const _ArchOp_name = "invalidequalsnot equalspattern match" 18 19 var _ArchOp_index = [...]uint8{0, 7, 13, 23, 36} 20 21 func (i ArchOp) String() string { 22 if i >= ArchOp(len(_ArchOp_index)-1) { 23 return "ArchOp(" + strconv.FormatInt(int64(i), 10) + ")" 24 } 25 return _ArchOp_name[_ArchOp_index[i]:_ArchOp_index[i+1]] 26 }