[GO] Fix support for enums with underscores and Unions with imported members (#5600)
authorTiago Silva <3629062+tigrato@users.noreply.github.com>
Tue, 26 Nov 2019 20:25:36 +0000 (20:25 +0000)
committerRobert Winslow <rw@users.noreply.github.com>
Tue, 26 Nov 2019 20:25:36 +0000 (12:25 -0800)
commit3c964e10ab4f97e2a3602a8d0a8f4c402806ef89
tree7e81a464e7f9e739d76273eb3290d1ffa3af86e8
parentc3c32ec9420bce55ef191ab47790ab742dd69b54
[GO] Fix support for enums with underscores and Unions with imported members (#5600)

* Fix Enum Stringer method when Enum has underscores

Fixes #5481

* Fix go package importing itself when Union has imported members.
src/idl_gen_go.cpp
tests/MyGame/Example/Any.go
tests/MyGame/Example/AnyAmbiguousAliases.go
tests/MyGame/Example/AnyUniqueAliases.go