From 07390eeb960df3ca10b758c9f62459cf2ee9aa3f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 1 Feb 2022 01:21:45 -0500 Subject: add internal/feed/dataformat.go --- internal/feed/dataformat_string.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 internal/feed/dataformat_string.go (limited to 'internal/feed/dataformat_string.go') 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]] +} -- cgit v1.2.3