| 1 | # Examples |
| 2 | |
| 3 | ## Generate code |
| 4 | First, generate necessary structures using |
| 5 | ```shell |
| 6 | go generate ./... |
| 7 | ``` |
| 8 | |
| 9 | ## Basic examples |
| 10 | |
| 11 | 1 `Person` per file |
| 12 | |
| 13 | ```shell |
| 14 | go run ./basic < customer.bin |
| 15 | go run ./basic < exmployee.bin |
| 16 | go run ./basic < terminated.bin |
| 17 | ``` |
| 18 | |
| 19 | ## Stream example |
| 20 | |
| 21 | Multiple people in a single file or stream |
| 22 | |
| 23 | ```shell |
| 24 | go run ./stream < people.bin |
| 25 | ``` |