• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Go Echo Example
2
3A simple example demonstrating how to send flatbuffers over the network in Go.
4
5## Generate flatbuffer code
6
7```
8flatc -g --gen-object-api --go-module-name echo hero.fbs net.fbs
9```
10
11## Running example
12
131. Run go mod tidy to get dependencies
14```
15go mod tidy
16```
17
182. Start a server
19```
20go run server/server.go
21```
22
233. Run the client in another terminal
24```
25go run client/client.go
26```
27
28