docs: Add go build example for setting version
This commit is contained in:
parent
5dacfd0dfe
commit
759787569d
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ See [Running](#Running) for details.
|
|||
See the `go.mod` file for minimum required Go version.
|
||||
There are currently no dependencies apart from the Go standard library.
|
||||
|
||||
``` shell
|
||||
go build -ldflags '-X main.version=v420.69-rc23' .
|
||||
```
|
||||
|
||||
## Running
|
||||
|
||||
Set the environment variable to a comma-separated list of config files or pass the `-c` flag.
|
||||
|
|
Loading…
Reference in a new issue