-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathageratingcategory_string.go
54 lines (45 loc) · 1.72 KB
/
ageratingcategory_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
51
52
53
54
// Code generated by "stringer -type=AgeRatingCategory,AgeRatingEnum"; DO NOT EDIT.
package igdb
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[AgeRatingESRB-1]
_ = x[AgeRatingPEGI-2]
}
const _AgeRatingCategory_name = "AgeRatingESRBAgeRatingPEGI"
var _AgeRatingCategory_index = [...]uint8{0, 13, 26}
func (i AgeRatingCategory) String() string {
i -= 1
if i < 0 || i >= AgeRatingCategory(len(_AgeRatingCategory_index)-1) {
return "AgeRatingCategory(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _AgeRatingCategory_name[_AgeRatingCategory_index[i]:_AgeRatingCategory_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[AgeRatingThree-1]
_ = x[AgeRatingSeven-2]
_ = x[AgeRatingTwelve-3]
_ = x[AgeRatingSixteen-4]
_ = x[AgeRatingEighteen-5]
_ = x[AgeRatingRP-6]
_ = x[AgeRatingEC-7]
_ = x[AgeRatingE-8]
_ = x[AgeRatingE10-9]
_ = x[AgeRatingT-10]
_ = x[AgeRatingM-11]
_ = x[AgeRatingAO-12]
}
const _AgeRatingEnum_name = "AgeRatingThreeAgeRatingSevenAgeRatingTwelveAgeRatingSixteenAgeRatingEighteenAgeRatingRPAgeRatingECAgeRatingEAgeRatingE10AgeRatingTAgeRatingMAgeRatingAO"
var _AgeRatingEnum_index = [...]uint8{0, 14, 28, 43, 59, 76, 87, 98, 108, 120, 130, 140, 151}
func (i AgeRatingEnum) String() string {
i -= 1
if i < 0 || i >= AgeRatingEnum(len(_AgeRatingEnum_index)-1) {
return "AgeRatingEnum(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _AgeRatingEnum_name[_AgeRatingEnum_index[i]:_AgeRatingEnum_index[i+1]]
}