-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathgamecategory_string.go
62 lines (53 loc) · 1.63 KB
/
gamecategory_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
55
56
57
58
59
60
61
62
// Code generated by "stringer -type=GameCategory,GameStatus"; 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[MainGame-0]
_ = x[DLCAddon-1]
_ = x[Expansion-2]
_ = x[Bundle-3]
_ = x[StandaloneExpansion-4]
_ = x[Mod-5]
_ = x[Episode-6]
_ = x[Season-7]
}
const _GameCategory_name = "MainGameDLCAddonExpansionBundleStandaloneExpansionModEpisodeSeason"
var _GameCategory_index = [...]uint8{0, 8, 16, 25, 31, 50, 53, 60, 66}
func (i GameCategory) String() string {
if i < 0 || i >= GameCategory(len(_GameCategory_index)-1) {
return "GameCategory(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _GameCategory_name[_GameCategory_index[i]:_GameCategory_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[StatusReleased-0]
_ = x[StatusAlpha-2]
_ = x[StatusBeta-3]
_ = x[StatusEarlyAccess-4]
_ = x[StatusOffline-5]
_ = x[StatusCancelled-6]
}
const (
_GameStatus_name_0 = "StatusReleased"
_GameStatus_name_1 = "StatusAlphaStatusBetaStatusEarlyAccessStatusOfflineStatusCancelled"
)
var (
_GameStatus_index_1 = [...]uint8{0, 11, 21, 38, 51, 66}
)
func (i GameStatus) String() string {
switch {
case i == 0:
return _GameStatus_name_0
case 2 <= i && i <= 6:
i -= 2
return _GameStatus_name_1[_GameStatus_index_1[i]:_GameStatus_index_1[i+1]]
default:
return "GameStatus(" + strconv.FormatInt(int64(i), 10) + ")"
}
}