File: README.md

package info (click to toggle)
golang-sourcehut-sircmpwn-go-bare 0.0~git20210406.ab86bc2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 268 kB
  • sloc: makefile: 5
file content (25 lines) | stat: -rw-r--r-- 356 bytes parent folder | download
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
```