[Go] Object API support (#5339)
authoriceboy <me@iceboy.org>
Thu, 31 Oct 2019 18:13:45 +0000 (11:13 -0700)
committerWouter van Oortmerssen <aardappel@gmail.com>
Thu, 31 Oct 2019 18:13:45 +0000 (11:13 -0700)
commit32254b7acdad8a0bd07f4f8348953b855e9b65c6
tree2a8f1aeb1549a2a69deb5c7e9cbb28c9aa6fd7c4
parent521e255ad9656a213971b30ba1beeec395b2e27e
[Go] Object API support (#5339)

* start

* works for current usages!

* unpack: vector of struct

* optimize byte slice

* support nested struct

* support null table

* support struct

* support union

* update generated code

* grumble

* fix compiler warning

* update generated code

* wrap type in namespace

* bug

* wrap in namespace

* enum byte arrays

* generate struct for unions

* basic testing

* remove branching

* fix assert

* pack vector of fixed structs correctly

* omit null vectors

* Refactor Union Pack and UnPack methods

Remove append usage to increase code efficiency when dealing with large vectors

* generate goldens
16 files changed:
src/idl_gen_go.cpp
tests/GoTest.sh
tests/MyGame/Example/Ability.go
tests/MyGame/Example/Any.go
tests/MyGame/Example/AnyAmbiguousAliases.go
tests/MyGame/Example/AnyUniqueAliases.go
tests/MyGame/Example/Monster.go
tests/MyGame/Example/Referrable.go
tests/MyGame/Example/Stat.go
tests/MyGame/Example/Test.go
tests/MyGame/Example/TestSimpleTableWithEnum.go
tests/MyGame/Example/TypeAliases.go
tests/MyGame/Example/Vec3.go
tests/MyGame/Example2/Monster.go
tests/MyGame/InParentNamespace.go
tests/go_test.go