From 2a29b254b40bad71fc00a312280c3373b1bb733b Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 31 Jan 2022 14:06:19 -0500 Subject: internal/cvss: move category and version to separate files --- internal/cvss/cvss.go | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'internal/cvss/cvss.go') diff --git a/internal/cvss/cvss.go b/internal/cvss/cvss.go index f260ce2..b92d819 100644 --- a/internal/cvss/cvss.go +++ b/internal/cvss/cvss.go @@ -6,31 +6,11 @@ import ( "strings" ) -//go:generate stringer -linecomment -type=Version -//go:generate stringer -linecomment -type=Category //go:generate stringer -linecomment -type=v2MetricKey //go:generate stringer -linecomment -type=v2Metric //go:generate stringer -linecomment -type=v3MetricKey //go:generate stringer -linecomment -type=v3Metric -// CVSS version -type Version byte - -const ( - V20 Version = iota // 2.0 - V30 // 3.0 - V31 // 3.1 -) - -// CVSS metric category. -type Category byte - -const ( - Base Category = iota // Base - Temporal // Temporal - Environmental // Environmental -) - // CVSS metric key. type v2MetricKey byte -- cgit v1.2.3