-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
cyclonedx_string.go
50 lines (41 loc) · 1.51 KB
/
cyclonedx_string.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Code generated by "stringer -linecomment -output cyclonedx_string.go -type MediaType,SpecVersion"; DO NOT EDIT.
package cyclonedx
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[MediaTypeJSON-1]
_ = x[MediaTypeXML-2]
_ = x[MediaTypeProtobuf-3]
}
const _MediaType_name = "application/vnd.cyclonedx+jsonapplication/vnd.cyclonedx+xmlapplication/x.vnd.cyclonedx+protobuf"
var _MediaType_index = [...]uint8{0, 30, 59, 95}
func (i MediaType) String() string {
i -= 1
if i < 0 || i >= MediaType(len(_MediaType_index)-1) {
return "MediaType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _MediaType_name[_MediaType_index[i]:_MediaType_index[i+1]]
}
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[SpecVersion1_0-1]
_ = x[SpecVersion1_1-2]
_ = x[SpecVersion1_2-3]
_ = x[SpecVersion1_3-4]
_ = x[SpecVersion1_4-5]
_ = x[SpecVersion1_5-6]
_ = x[SpecVersion1_6-7]
}
const _SpecVersion_name = "1.01.11.21.31.41.51.6"
var _SpecVersion_index = [...]uint8{0, 3, 6, 9, 12, 15, 18, 21}
func (i SpecVersion) String() string {
i -= 1
if i < 0 || i >= SpecVersion(len(_SpecVersion_index)-1) {
return "SpecVersion(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _SpecVersion_name[_SpecVersion_index[i]:_SpecVersion_index[i+1]]
}