mirror of
https://github.com/google/flatbuffers.git
synced 2025-04-08 09:12:14 +08:00
* Add --go-module-name flag to support generating code for go modules * Rename echo example folder * Grammar * Update readme for go-echo example * Update readme for go-echo example * Re-enable go modules after test is done
404 B
404 B
Go Echo Example
A simple example demonstrating how to send flatbuffers over the network in Go.
Generate flatbuffer code
flatc -g --gen-object-api --go-module-name echo hero.fbs net.fbs
Running example
- Run go mod tidy to get dependencies
go mod tidy
- Start a server
go run server/server.go
- Run the client in another terminal
go run client/client.go