Skip to content

Commit 52aeeb8

Browse files
committed
Create example of generating a go client
1 parent 614453e commit 52aeeb8

File tree

8 files changed

+5177
-0
lines changed

8 files changed

+5177
-0
lines changed

examples/go/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# golang client example
2+
3+
``` sh
4+
go generate
5+
go run main.go
6+
```
7+
8+
This example uses https://github.com/oapi-codegen/oapi-codegen to generate a golang client from the spec.
9+
There may be other generators out there that you prefer to use.
10+
11+
The example starts an instance of zerotier-one in a docker container and then queries it with the generated client.
12+

0 commit comments

Comments
 (0)