Lines Matching full:go
1 Use in Go {#flatbuffers_guide_use_go}
6 Before diving into the FlatBuffers usage in Go, it should be noted that
8 to general FlatBuffers usage in all of the supported languages (including Go).
10 Go.
17 ## FlatBuffers Go library code location
19 The code for the FlatBuffers Go library can be found at
20 `flatbuffers/go`. You can browse the library code on the [FlatBuffers
21 GitHub page](https://github.com/google/flatbuffers/tree/master/go).
23 ## Testing the FlatBuffers Go library
25 The code to test the Go library can be found at `flatbuffers/tests`.
26 The test code itself is located in [go_test.go](https://github.com/google/
27 flatbuffers/blob/master/tests/go_test.go).
32 *Note: The shell script requires [Go](https://golang.org/doc/install) to
35 ## Using the FlatBuffers Go library
38 example of how to use FlatBuffers in Go.*
40 FlatBuffers supports reading and writing binary FlatBuffers in Go.
42 To use FlatBuffers in your own code, first generate Go classes from your
43 schema with the `--go` option to `flatc`. Then you can include both FlatBuffers
46 For example, here is how you would read a FlatBuffer binary file in Go: First,
50 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.go}
53 flatbuffers "github.com/google/flatbuffers/go"
65 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.go}
73 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.go}
96 from Go, though you could use the C++ parser through cgo. Please see the