mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
Resolve Go fmt and vet warnings (#4134)
* Resolve Go fmt and vet warnings. * Undo generated code gofmt.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
e2373668d9
commit
b55f18649a
@@ -19,10 +19,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
flatbuffers "github.com/google/flatbuffers/go"
|
|
||||||
"fmt"
|
|
||||||
"strconv"
|
|
||||||
sample "MyGame/Sample"
|
sample "MyGame/Sample"
|
||||||
|
"fmt"
|
||||||
|
flatbuffers "github.com/google/flatbuffers/go"
|
||||||
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Example how to use Flatbuffers to create and read binary buffers.
|
// Example how to use Flatbuffers to create and read binary buffers.
|
||||||
|
|||||||
@@ -1251,9 +1251,9 @@ func CheckVtableDeduplication(fail func(string, ...interface{})) {
|
|||||||
len(want), want, len(got), got)
|
len(want), want, len(got), got)
|
||||||
}
|
}
|
||||||
|
|
||||||
table0 := &flatbuffers.Table{b.Bytes, flatbuffers.UOffsetT(len(b.Bytes)) - obj0}
|
table0 := &flatbuffers.Table{Bytes: b.Bytes, UOffset: flatbuffers.UOffsetT(len(b.Bytes)) - obj0}
|
||||||
table1 := &flatbuffers.Table{b.Bytes, flatbuffers.UOffsetT(len(b.Bytes)) - obj1}
|
table1 := &flatbuffers.Table{Bytes: b.Bytes, UOffset: flatbuffers.UOffsetT(len(b.Bytes)) - obj1}
|
||||||
table2 := &flatbuffers.Table{b.Bytes, flatbuffers.UOffsetT(len(b.Bytes)) - obj2}
|
table2 := &flatbuffers.Table{Bytes: b.Bytes, UOffset: flatbuffers.UOffsetT(len(b.Bytes)) - obj2}
|
||||||
|
|
||||||
testTable := func(tab *flatbuffers.Table, a flatbuffers.VOffsetT, b, c, d byte) {
|
testTable := func(tab *flatbuffers.Table, a flatbuffers.VOffsetT, b, c, d byte) {
|
||||||
// vtable size
|
// vtable size
|
||||||
|
|||||||
Reference in New Issue
Block a user