github.com/quay/claircore@v1.5.28/rpm/dbkind_string.go (about) 1 // Code generated by "stringer -linecomment -type dbKind"; DO NOT EDIT. 2 3 package rpm 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[kindBDB-1] 12 _ = x[kindSQLite-2] 13 _ = x[kindNDB-3] 14 } 15 16 const _dbKind_name = "bdbsqlitendb" 17 18 var _dbKind_index = [...]uint8{0, 3, 9, 12} 19 20 func (i dbKind) String() string { 21 i -= 1 22 if i >= dbKind(len(_dbKind_index)-1) { 23 return "dbKind(" + strconv.FormatInt(int64(i+1), 10) + ")" 24 } 25 return _dbKind_name[_dbKind_index[i]:_dbKind_index[i+1]] 26 }