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

package feed

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[CveType-0]
}

const _DataType_name = "CVE"

var _DataType_index = [...]uint8{0, 3}

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