aboutsummaryrefslogtreecommitdiff
path: root/nvdmirror/updatetype_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'nvdmirror/updatetype_string.go')
-rw-r--r--nvdmirror/updatetype_string.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/nvdmirror/updatetype_string.go b/nvdmirror/updatetype_string.go
new file mode 100644
index 0000000..2a81282
--- /dev/null
+++ b/nvdmirror/updatetype_string.go
@@ -0,0 +1,28 @@
+// Code generated by "stringer -linecomment -type=UpdateType"; DO NOT EDIT.
+
+package nvdmirror
+
+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[UpdateCveYear-0]
+ _ = x[UpdateCveMeta-1]
+ _ = x[UpdateCpeMatch-2]
+ _ = x[UpdateCpeDict-3]
+ _ = x[UpdateCisaKevc-4]
+ _ = x[UpdateCweList-5]
+}
+
+const _UpdateType_name = "cveyearcvemetacpematchcpedictkevccwe"
+
+var _UpdateType_index = [...]uint8{0, 7, 14, 22, 29, 33, 36}
+
+func (i UpdateType) String() string {
+ if i >= UpdateType(len(_UpdateType_index)-1) {
+ return "UpdateType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _UpdateType_name[_UpdateType_index[i]:_UpdateType_index[i+1]]
+}