blob: 8d9067e1d52c9767aaa27fa8744b70a2e627b051 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001// Code generated by the FlatBuffers compiler. DO NOT EDIT.
2
3package Example
4
5import "strconv"
6
7type Any byte
8
9const (
10 AnyNONE Any = 0
11 AnyMonster Any = 1
12 AnyTestSimpleTableWithEnum Any = 2
13 AnyMyGame_Example2_Monster Any = 3
14)
15
16var EnumNamesAny = map[Any]string{
17 AnyNONE: "NONE",
18 AnyMonster: "Monster",
19 AnyTestSimpleTableWithEnum: "TestSimpleTableWithEnum",
20 AnyMyGame_Example2_Monster: "MyGame_Example2_Monster",
21}
22
23var EnumValuesAny = map[string]Any{
24 "NONE": AnyNONE,
25 "Monster": AnyMonster,
26 "TestSimpleTableWithEnum": AnyTestSimpleTableWithEnum,
27 "MyGame_Example2_Monster": AnyMyGame_Example2_Monster,
28}
29
30func (v Any) String() string {
31 if s, ok := EnumNamesAny[v]; ok {
32 return s
33 }
34 return "Any(" + strconv.FormatInt(int64(v), 10) + ")"
35}