-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathcharactergender_string.go
48 lines (39 loc) · 1.48 KB
/
charactergender_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
// Code generated by "stringer -type=CharacterGender,CharacterSpecies"; 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[GenderMale-1]
_ = x[GenderFemale-2]
_ = x[GenderOther-3]
}
const _CharacterGender_name = "GenderMaleGenderFemaleGenderOther"
var _CharacterGender_index = [...]uint8{0, 10, 22, 33}
func (i CharacterGender) String() string {
i -= 1
if i < 0 || i >= CharacterGender(len(_CharacterGender_index)-1) {
return "CharacterGender(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _CharacterGender_name[_CharacterGender_index[i]:_CharacterGender_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[SpeciesHuman-1]
_ = x[SpeciesAlien-2]
_ = x[SpeciesAnimal-3]
_ = x[SpeciesAndroid-4]
_ = x[SpeciesUnknown-5]
}
const _CharacterSpecies_name = "SpeciesHumanSpeciesAlienSpeciesAnimalSpeciesAndroidSpeciesUnknown"
var _CharacterSpecies_index = [...]uint8{0, 12, 24, 37, 51, 65}
func (i CharacterSpecies) String() string {
i -= 1
if i < 0 || i >= CharacterSpecies(len(_CharacterSpecies_index)-1) {
return "CharacterSpecies(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _CharacterSpecies_name[_CharacterSpecies_index[i]:_CharacterSpecies_index[i+1]]
}