Skip to content

Commit

Permalink
fix version string
Browse files Browse the repository at this point in the history
  • Loading branch information
jpillora committed Apr 19, 2024
1 parent 1133cbd commit 61c4d76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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)
}
}

0 comments on commit 61c4d76

Please sign in to comment.