diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-01-31 22:13:31 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-01-31 22:13:31 -0500 |
commit | 6b80bfb7889444cdb9ab07dcd5fe2fcb2000ce8e (patch) | |
tree | a9263af8788da3f8de1dff03a746d80adf6c4fd5 | |
parent | abcd9428d9eb6cc8ac0189e6443930a67ebcabda (diff) | |
download | cvez-6b80bfb7889444cdb9ab07dcd5fe2fcb2000ce8e.tar.bz2 cvez-6b80bfb7889444cdb9ab07dcd5fe2fcb2000ce8e.zip |
internal/cvss/category.go: add InvalidCategory
-rw-r--r-- | internal/cvss/category.go | 1 | ||||
-rw-r--r-- | internal/cvss/category_string.go | 5 |
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) { |