From 22fd269069b8e47bc40fbd8681243bdd4bd61a47 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 5 Feb 2022 02:37:00 -0500 Subject: mv internal/dbstore dbstore --- dbstore/cpesearchtype_string.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dbstore/cpesearchtype_string.go (limited to 'dbstore/cpesearchtype_string.go') diff --git a/dbstore/cpesearchtype_string.go b/dbstore/cpesearchtype_string.go new file mode 100644 index 0000000..1d4826e --- /dev/null +++ b/dbstore/cpesearchtype_string.go @@ -0,0 +1,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]] +} -- cgit v1.2.3