aboutsummaryrefslogtreecommitdiff
path: root/example/README.md
blob: fdffe246301a92c832e937ce27e6ba6799b4ada7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Examples

## Generate code
First, generate necessary structures using
```shell
go generate ./...
```

## Basic examples

1 `Person` per file

```shell
go run ./basic < customer.bin
go run ./basic < exmployee.bin
go run ./basic < terminated.bin
```

## Stream example

Multiple people in a single file or stream

```shell
go run ./stream < people.bin
```