mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
|
|
||
|---|---|---|
| .. | ||
| client | ||
| hero | ||
| net | ||
| server | ||
| go.mod | ||
| hero.fbs | ||
| net.fbs | ||
| 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
- 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