about summary refs log tree commit diff stats
path: root/svc/init.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-09 23:14:56 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-09 23:26:30 -0400
commit45d67236e16365e0c6ea90e9b8baa3008d50996d (patch)
tree4639f792e06633280dfe250fd2eba796b8cb6089 /svc/init.go
parent3b6d1cc9f8acf82be9f168657b6ecab1eb34721e (diff)
downloadgetwtxt-45d67236e16365e0c6ea90e9b8baa3008d50996d.tar.gz
setting version via build flags
Diffstat (limited to 'svc/init.go')
-rw-r--r--svc/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/svc/init.go b/svc/init.go
index e9c64af..6af7866 100644
--- a/svc/init.go
+++ b/svc/init.go
@@ -12,9 +12,9 @@ import (
 	"github.com/spf13/pflag"
 )
 
-const getwtxt = "0.3.0"
-
 var (
+	// Vers contains the version number set at build time
+	Vers         string
 	flagVersion  *bool   = pflag.BoolP("version", "v", false, "Display version information, then exit.")
 	flagHelp     *bool   = pflag.BoolP("help", "h", false, "Display the quick-help screen.")
 	flagMan      *bool   = pflag.BoolP("manual", "m", false, "Display the configuration manual.")