Use standard header for generated Go files (#4961)
authorkostya-sh <kostya-sh@users.noreply.github.com>
Wed, 3 Oct 2018 18:19:40 +0000 (19:19 +0100)
committerWouter van Oortmerssen <aardappel@gmail.com>
Wed, 3 Oct 2018 18:19:40 +0000 (11:19 -0700)
commit062dcf7007343cdb46eb7986b0a78458c9a7a157
tree450c86900c1cd3f57ed1a2750c977b0ee0c9e9d2
parentebb410062b066982ab28f6e03017bd84edcfaf3a
Use standard header for generated Go files (#4961)

As recommended by https://golang.org/pkg/cmd/go/internal/generate/:

  To convey to humans and machine tools that code is generated,
  generated source should have a line early in the file that
  matches the following regular expression (in Go syntax):

        ^// Code generated .* DO NOT EDIT\.$
19 files changed:
src/idl_gen_go.cpp
tests/MyGame/Example/Ability.go
tests/MyGame/Example/Any.go
tests/MyGame/Example/Color.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/namespace_test/NamespaceA/NamespaceB/EnumInNestedNS.go
tests/namespace_test/NamespaceA/NamespaceB/StructInNestedNS.go
tests/namespace_test/NamespaceA/NamespaceB/TableInNestedNS.go
tests/namespace_test/NamespaceA/SecondTableInA.go
tests/namespace_test/NamespaceA/TableInFirstNS.go
tests/namespace_test/NamespaceC/TableInC.go