mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 15:37:27 +00:00
Formats cpp code (#6349)
This commit is contained in:
@@ -266,7 +266,9 @@ class GoGenerator : public BaseGenerator {
|
||||
if (i == 0) {
|
||||
code += "\tn := flatbuffers.GetUOffsetT(buf[offset:])\n";
|
||||
} else {
|
||||
code += "\tn := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:])\n";
|
||||
code +=
|
||||
"\tn := "
|
||||
"flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:])\n";
|
||||
}
|
||||
code += "\tx := &" + struct_def.name + "{}\n";
|
||||
if (i == 0) {
|
||||
|
||||
Reference in New Issue
Block a user