mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-08 14:15:17 +00:00
Add EnumNames to Go code
Tested: on Darwin
This commit is contained in:
@@ -8,3 +8,11 @@ const (
|
||||
AnyTestSimpleTableWithEnum = 2
|
||||
AnyMyGame_Example2_Monster = 3
|
||||
)
|
||||
|
||||
var EnumNamesAny = map[int]string{
|
||||
AnyNONE:"NONE",
|
||||
AnyMonster:"Monster",
|
||||
AnyTestSimpleTableWithEnum:"TestSimpleTableWithEnum",
|
||||
AnyMyGame_Example2_Monster:"MyGame_Example2_Monster",
|
||||
}
|
||||
|
||||
|
||||
@@ -7,3 +7,10 @@ const (
|
||||
ColorGreen = 2
|
||||
ColorBlue = 8
|
||||
)
|
||||
|
||||
var EnumNamesColor = map[int]string{
|
||||
ColorRed:"Red",
|
||||
ColorGreen:"Green",
|
||||
ColorBlue:"Blue",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user