aboutsummaryrefslogtreecommitdiff
path: root/feed/dataformat_string.go
blob: 4b755f4c536d681a389b83bcd026b6a8ac2c021b (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=DataFormat"; 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[MitreFormat-0]
}

const _DataFormat_name = "MITRE"

var _DataFormat_index = [...]uint8{0, 5}

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