diff options
Diffstat (limited to 'internal/feed/dataformat_string.go')
-rw-r--r-- | internal/feed/dataformat_string.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/feed/dataformat_string.go b/internal/feed/dataformat_string.go new file mode 100644 index 0000000..4b755f4 --- /dev/null +++ b/internal/feed/dataformat_string.go @@ -0,0 +1,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]] +} |