diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-01 01:21:45 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-01 01:21:45 -0500 |
commit | 07390eeb960df3ca10b758c9f62459cf2ee9aa3f (patch) | |
tree | 6612ba4fe2f7252a3096bc2bb250aca11d86636f /internal/feed/dataformat_string.go | |
parent | a824a9732154f9bee2ce530f753d5747de78aa3f (diff) | |
download | cvez-07390eeb960df3ca10b758c9f62459cf2ee9aa3f.tar.bz2 cvez-07390eeb960df3ca10b758c9f62459cf2ee9aa3f.zip |
add internal/feed/dataformat.go
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]] +} |