Use const for version string.

v0.3
Martin Dosch 2 years ago
parent 64f153d752
commit 77de6c745c

@ -24,6 +24,10 @@ import (
"github.com/pborman/getopt/v2" // BSD-3-Clause
)
const (
VERSION = "devel"
)
type configuration struct {
username string
jserver string
@ -254,7 +258,7 @@ func main() {
// If requested, show version and quit.
if *flagVersion {
fmt.Println("go-sendxmpp", "devel")
fmt.Println("go-sendxmpp", VERSION)
fmt.Println("License: BSD-2-clause")
os.Exit(0)
}

Loading…
Cancel
Save