tree: 0407fb814f75fbb5810916b065615201a9e8273b [path history] [tgz]
  1. client/
  2. hero/
  3. net/
  4. server/
  5. go.mod
  6. hero.fbs
  7. net.fbs
  8. README.md
examples/go-echo/README.md

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

  1. Run go mod tidy to get dependencies
go mod tidy
  1. Start a server
go run server/server.go
  1. Run the client in another terminal
go run client/client.go