From 759787569d89d04e11751851a7fa62a28c721a0c Mon Sep 17 00:00:00 2001 From: Bennett Wetters Date: Sat, 3 Aug 2024 21:55:05 +0200 Subject: [PATCH] docs: Add go build example for setting version --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 577f3ee..e24266a 100644 --- a/README.md +++ b/README.md @@ -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.