blob: 2f349b139cbff22077e042ba251bc242451ecf9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Code generated by "stringer -linecomment -type=Severity"; DO NOT EDIT.
package cvss
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[None-0]
_ = x[Low-1]
_ = x[Medium-2]
_ = x[High-3]
_ = x[Critical-4]
_ = x[Unknown-5]
}
const _Severity_name = "NoneLowMediumHighCriticalUnknown"
var _Severity_index = [...]uint8{0, 4, 7, 13, 17, 25, 32}
func (i Severity) String() string {
if i >= Severity(len(_Severity_index)-1) {
return "Severity(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Severity_name[_Severity_index[i]:_Severity_index[i+1]]
}
|