aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cvss/version.go')
-rw-r--r--internal/cvss/version.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/cvss/version.go b/internal/cvss/version.go
new file mode 100644
index 0000000..ab9d61f
--- /dev/null
+++ b/internal/cvss/version.go
@@ -0,0 +1,13 @@
+// CVSS vector string parser.
+package cvss
+
+//go:generate stringer -linecomment -type=Version
+
+// CVSS version
+type Version byte
+
+const (
+ V20 Version = iota // 2.0
+ V30 // 3.0
+ V31 // 3.1
+)