aboutsummaryrefslogtreecommitdiff
path: root/dbstore/cpesearchtype_string.go
blob: b825fc8ed62aab4a45aa6298cdbd80ac31927c4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by "stringer -linecomment -type=CpeSearchType"; DO NOT EDIT.

package dbstore

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[CpeSearchAll-0]
	_ = x[CpeSearchTitle-1]
	_ = x[CpeSearchRef-2]
}

const _CpeSearchType_name = "cpe/search-allcpe/search-titlecpe/search-ref"

var _CpeSearchType_index = [...]uint8{0, 14, 30, 44}

func (i CpeSearchType) String() string {
	if i >= CpeSearchType(len(_CpeSearchType_index)-1) {
		return "CpeSearchType(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _CpeSearchType_name[_CpeSearchType_index[i]:_CpeSearchType_index[i+1]]
}