From 61c4d76052515318d6f74ab8bd143713a3133fe5 Mon Sep 17 00:00:00 2001 From: Jaime Pillora Date: Fri, 19 Apr 2024 21:18:53 +1000 Subject: [PATCH] fix version string --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 7b78983e..e637a3c7 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( "github.com/jpillora/opts" ) -var VERSION = "0.0.0-src" //set with ldflags +var version = "0.0.0-src" //set with ldflags func main() { s := server.Server{ @@ -17,12 +17,12 @@ func main() { } o := opts.New(&s) - o.Version(VERSION) + o.Version(version) o.PkgRepo() o.SetLineWidth(96) o.Parse() - if err := s.Run(VERSION); err != nil { + if err := s.Run(version); err != nil { log.Fatal(err) } }