aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cvss')
-rw-r--r--internal/cvss/category.go1
-rw-r--r--internal/cvss/category_string.go5
2 files changed, 4 insertions, 2 deletions
diff --git a/internal/cvss/category.go b/internal/cvss/category.go
index b6e0b37..54781dc 100644
--- a/internal/cvss/category.go
+++ b/internal/cvss/category.go
@@ -9,4 +9,5 @@ const (
Base Category = iota // Base
Temporal // Temporal
Environmental // Environmental
+ InvalidCategory // invalid
)
diff --git a/internal/cvss/category_string.go b/internal/cvss/category_string.go
index 82a4868..782f8fb 100644
--- a/internal/cvss/category_string.go
+++ b/internal/cvss/category_string.go
@@ -11,11 +11,12 @@ func _() {
_ = x[Base-0]
_ = x[Temporal-1]
_ = x[Environmental-2]
+ _ = x[InvalidCategory-3]
}
-const _Category_name = "BaseTemporalEnvironmental"
+const _Category_name = "BaseTemporalEnvironmentalinvalid"
-var _Category_index = [...]uint8{0, 4, 12, 25}
+var _Category_index = [...]uint8{0, 4, 12, 25, 32}
func (i Category) String() string {
if i >= Category(len(_Category_index)-1) {