summary refs log tree commit diff stats
path: root/svc/init.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-06 00:27:08 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-06 00:27:14 -0400
commit6753171a8992699baef2c529dd904cf562e87448 (patch)
tree2c4f20eb93f84b8da1af240c5501f3c1c185b2e0 /svc/init.go
parent39c0e89b0aa010ae80156976fc5b0a5fe9b4b115 (diff)
downloadgetwtxt-6753171a8992699baef2c529dd904cf562e87448.tar.gz
updated tests to work with new project structure
Diffstat (limited to 'svc/init.go')
-rw-r--r--svc/init.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/svc/init.go b/svc/init.go
index 18fe0b6..9e4c418 100644
--- a/svc/init.go
+++ b/svc/init.go
@@ -18,7 +18,7 @@ import (
 	"github.com/syndtr/goleveldb/leveldb"
 )
 
-const getwtxt = "0.2.2"
+const getwtxt = "0.3.0"
 
 var (
 	flagVersion  *bool   = pflag.BoolP("version", "v", false, "Display version information, then exit.")
@@ -57,7 +57,10 @@ var staticCache = &struct {
 	cssMod:   time.Time{},
 }
 
-func init() {
+// I'm not using init() because it runs
+// even during testing and was causing
+// problems.
+func initSvc() {
 	checkFlags()
 	titleScreen()
 	initConfig()