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