docs: Add go build example for setting version

This commit is contained in:
Bendodroid 2024-08-03 21:55:05 +02:00
parent 5dacfd0dfe
commit 759787569d

View file

@ -33,6 +33,10 @@ See [Running](#Running) for details.
See the `go.mod` file for minimum required Go version. See the `go.mod` file for minimum required Go version.
There are currently no dependencies apart from the Go standard library. There are currently no dependencies apart from the Go standard library.
``` shell
go build -ldflags '-X main.version=v420.69-rc23' .
```
## Running ## Running
Set the environment variable to a comma-separated list of config files or pass the `-c` flag. Set the environment variable to a comma-separated list of config files or pass the `-c` flag.