flatbuffers/tests/MyGame/Example
Andrei Burdulescu c793621567
[golang] Add support for text parsing with json struct tags (#7353)
* [golang] Add support for text parsing with json struct tags

Add struct tags to Go native structs generated when object API is used.

This allows to use the same JSON file as for C++ text
parsing(i.e. snake_case vs CamelCase) and thus enabling text parsing
for Go(when using object API).

* [golang] Add test for text parsing

Added small test to check and demonstrate text parsing in Go.
Also, ran clang-format on cpp file changes.
2022-08-08 11:30:06 -07:00
..
__init__.py
Ability.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
Ability.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
Ability.java
Ability.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
Ability.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
Ability.php
Ability.py
AbilityT.java
Any.cs
Any.go
Any.java
Any.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
Any.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
Any.php
Any.py Enable --gen-onefile in Python (#6953) 2021-12-09 15:47:09 -08:00
AnyAmbiguousAliases.cs
AnyAmbiguousAliases.go
AnyAmbiguousAliases.java
AnyAmbiguousAliases.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
AnyAmbiguousAliases.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
AnyAmbiguousAliases.php
AnyAmbiguousAliases.py Enable --gen-onefile in Python (#6953) 2021-12-09 15:47:09 -08:00
AnyAmbiguousAliasesUnion.java
AnyUnion.java
AnyUniqueAliases.cs
AnyUniqueAliases.go
AnyUniqueAliases.java
AnyUniqueAliases.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
AnyUniqueAliases.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
AnyUniqueAliases.php
AnyUniqueAliases.py Enable --gen-onefile in Python (#6953) 2021-12-09 15:47:09 -08:00
AnyUniqueAliasesUnion.java
ArrayStruct.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
ArrayStruct.java
ArrayStruct.py
ArrayStructT.java
ArrayTable.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
ArrayTable.java
ArrayTable.py Keep methods with struct name and switch them to default (#6879) 2021-11-04 15:12:25 -07:00
ArrayTableT.java
Color.cs
Color.go
Color.java
Color.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
Color.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
Color.php
Color.py Enable --gen-onefile in Python (#6953) 2021-12-09 15:47:09 -08:00
LongEnum.cs Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
LongEnum.go Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
LongEnum.java Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
LongEnum.kt Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
LongEnum.lua Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
LongEnum.php Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
LongEnum.py Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
Monster.cs Add overloads for C# ByteBuffer/FlatBufferBuilder to allow adding vector blocks from ArraySegments or IntPtr (#7193) 2022-04-01 13:35:07 -07:00
Monster.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
Monster.java [Java] Fix key lookup returning null clashing with default value (#7236) 2022-04-11 17:16:41 -07:00
Monster.kt [Kotlin] Fix key lookup returning null clashing with default value (#7237) 2022-04-11 17:17:19 -07:00
Monster.lua Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
Monster.php Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
Monster.py Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
monster_test_grpc_fb.py
MonsterStorage_grpc.go
MonsterStorageGrpc.java
MonsterT.java Fix 64-bit numeric enum values in typescript (#7135) 2022-03-04 21:57:48 -08:00
NestedStruct.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
NestedStruct.java
NestedStruct.py
NestedStructT.java
Race.cs
Race.go
Race.java
Race.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
Race.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
Race.php
Race.py Enable --gen-onefile in Python (#6953) 2021-12-09 15:47:09 -08:00
Referrable.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
Referrable.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
Referrable.java [Java] Fix key lookup returning null clashing with default value (#7236) 2022-04-11 17:16:41 -07:00
Referrable.kt [Kotlin] Fix key lookup returning null clashing with default value (#7237) 2022-04-11 17:17:19 -07:00
Referrable.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
Referrable.php
Referrable.py Keep methods with struct name and switch them to default (#6879) 2021-11-04 15:12:25 -07:00
ReferrableT.java
Stat.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
Stat.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
Stat.java [Java] Fix key lookup returning null clashing with default value (#7236) 2022-04-11 17:16:41 -07:00
Stat.kt [Kotlin] Fix key lookup returning null clashing with default value (#7237) 2022-04-11 17:17:19 -07:00
Stat.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
Stat.php
Stat.py Keep methods with struct name and switch them to default (#6879) 2021-11-04 15:12:25 -07:00
StatT.java
StructOfStructs.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
StructOfStructs.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
StructOfStructs.java
StructOfStructs.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
StructOfStructs.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
StructOfStructs.php
StructOfStructs.py
StructOfStructsOfStructs.cs [TS] Fix generation of struct members in object api (#7148) 2022-03-23 21:40:11 -07:00
StructOfStructsOfStructs.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
StructOfStructsOfStructs.java [TS] Fix generation of struct members in object api (#7148) 2022-03-23 21:40:11 -07:00
StructOfStructsOfStructs.kt [TS] Fix generation of struct members in object api (#7148) 2022-03-23 21:40:11 -07:00
StructOfStructsOfStructs.lua [TS] Fix generation of struct members in object api (#7148) 2022-03-23 21:40:11 -07:00
StructOfStructsOfStructs.php [TS] Fix generation of struct members in object api (#7148) 2022-03-23 21:40:11 -07:00
StructOfStructsOfStructs.py [TS] Fix generation of struct members in object api (#7148) 2022-03-23 21:40:11 -07:00
StructOfStructsOfStructsT.java [TS] Fix generation of struct members in object api (#7148) 2022-03-23 21:40:11 -07:00
StructOfStructsT.java
Test.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
Test.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
Test.java
Test.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
Test.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
Test.php
Test.py
TestEnum.cs
TestEnum.java
TestEnum.kt
TestEnum.py Enable --gen-onefile in Python (#6953) 2021-12-09 15:47:09 -08:00
TestSimpleTableWithEnum.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
TestSimpleTableWithEnum.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
TestSimpleTableWithEnum.java
TestSimpleTableWithEnum.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
TestSimpleTableWithEnum.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
TestSimpleTableWithEnum.php
TestSimpleTableWithEnum.py Keep methods with struct name and switch them to default (#6879) 2021-11-04 15:12:25 -07:00
TestSimpleTableWithEnumT.java
TestT.java
TypeAliases.cs Add overloads for C# ByteBuffer/FlatBufferBuilder to allow adding vector blocks from ArraySegments or IntPtr (#7193) 2022-04-01 13:35:07 -07:00
TypeAliases.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
TypeAliases.java
TypeAliases.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
TypeAliases.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
TypeAliases.php
TypeAliases.py Keep methods with struct name and switch them to default (#6879) 2021-11-04 15:12:25 -07:00
TypeAliasesT.java
Vec3.cs [C#] Remove superfluous semicolon in C# structs (#6791) 2021-08-17 11:02:57 -04:00
Vec3.go [golang] Add support for text parsing with json struct tags (#7353) 2022-08-08 11:30:06 -07:00
Vec3.java
Vec3.kt Remove @ExperimentalUnsignedTypes annotation from kotlin code generator. (#7092) 2022-02-13 20:29:36 -08:00
Vec3.lua Change Rust generated file defaults (#7101) 2022-02-15 11:48:42 -05:00
Vec3.php
Vec3.py
Vec3T.java