osrm-backend/tests/MyGame/Example/Race.go
Siarhei Fedartsou 0f6aab9da6 Squashed 'third_party/flatbuffers/' content from commit 595bf0007
git-subtree-dir: third_party/flatbuffers
git-subtree-split: 595bf0007ab1929570c7671f091313c8fc20644e
2024-06-22 13:33:34 +02:00

36 lines
587 B
Go

// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package Example
import "strconv"
type Race int8
const (
RaceNone Race = -1
RaceHuman Race = 0
RaceDwarf Race = 1
RaceElf Race = 2
)
var EnumNamesRace = map[Race]string{
RaceNone: "None",
RaceHuman: "Human",
RaceDwarf: "Dwarf",
RaceElf: "Elf",
}
var EnumValuesRace = map[string]Race{
"None": RaceNone,
"Human": RaceHuman,
"Dwarf": RaceDwarf,
"Elf": RaceElf,
}
func (v Race) String() string {
if s, ok := EnumNamesRace[v]; ok {
return s
}
return "Race(" + strconv.FormatInt(int64(v), 10) + ")"
}