flatbuffers/tests/namespace_test/NamespaceA/NamespaceB
David Reiss 718ddea558 [Go] Make enums into real types, add String() (#5235)
* [Go] Make enums into real types, add String()

This changes the generated code for enums: instead of type aliases,
they're now distinct types, allowing for better type-checking. Some
client code may have to be changed to add casts.

Enum types now have a String() method, so they implement fmt.Stringer.

An EnumValues map is now generated, in addition to the existing
EnumNames map, to easily map strings to values.

Generated enum files are now gofmt-clean.

Fixes #5207

* use example.ColorGreen explicitly

* use valid enum value in mutation test, add new test for "invalid" enum

* add length check and comment
2019-05-17 12:41:39 -07:00
..
EnumInNestedNS.cs C#: Added <autogenerated> in cs generator file header comment (#4291) 2017-05-16 14:28:34 -07:00
EnumInNestedNS.go [Go] Make enums into real types, add String() (#5235) 2019-05-17 12:41:39 -07:00
EnumInNestedNS.java Fixed missing code from @javax.annotation PR. 2018-11-02 11:40:21 -07:00
EnumInNestedNS.lua Missing Lua generated files 2018-07-16 16:44:49 -07:00
EnumInNestedNS.php Changing array to be an associative array so that the Name function can work with non-sequential enums as well as those beginning at something other than zero. (#5151) 2019-02-04 23:33:57 +01:00
EnumInNestedNS.py sharing the Flatbuffers warning 2016-05-26 15:26:58 +02:00
StructInNestedNS.cs C#: Added <autogenerated> in cs generator file header comment (#4291) 2017-05-16 14:28:34 -07:00
StructInNestedNS.go Use standard header for generated Go files (#4961) 2018-10-03 11:19:40 -07:00
StructInNestedNS.java Fixed vector of unions crash in java (#5190) 2019-02-21 19:50:13 +01:00
StructInNestedNS.lua Missing Lua generated files 2018-07-16 16:44:49 -07:00
StructInNestedNS.php sharing the Flatbuffers warning 2016-05-26 15:26:58 +02:00
StructInNestedNS.py sharing the Flatbuffers warning 2016-05-26 15:26:58 +02:00
TableInNestedNS.cs C#: Added <autogenerated> in cs generator file header comment (#4291) 2017-05-16 14:28:34 -07:00
TableInNestedNS.go Use standard header for generated Go files (#4961) 2018-10-03 11:19:40 -07:00
TableInNestedNS.java Java: Calculation of vtable and vtable size moved to the __init method. (#5210) 2019-02-25 23:45:29 +01:00
TableInNestedNS.lua Missing Lua generated files 2018-07-16 16:44:49 -07:00
TableInNestedNS.php sharing the Flatbuffers warning 2016-05-26 15:26:58 +02:00
TableInNestedNS.py Adding missing generated code from recent commits. 2016-07-25 15:01:37 -07:00
__init__.py Made sure all namespace test files get generated. 2015-12-14 16:15:43 -08:00