summary refs log tree commit diff stats
path: root/types.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-12 03:59:29 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-12 03:59:29 -0400
commit06cffd89aeea4d34c987a1e7583af7525b8534e8 (patch)
treeabfdd9883033d538d5da83dadc6458e09a5feea2 /types.go
parentdb3ecebbc2d131f9bd6a8d47e39dcecf785183e5 (diff)
downloadgetwtxt-06cffd89aeea4d34c987a1e7583af7525b8534e8.tar.gz
config fleshed out; using viper+pflag
Diffstat (limited to 'types.go')
-rw-r--r--types.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/types.go b/types.go
index 6b33e5b..5ca2f90 100644
--- a/types.go
+++ b/types.go
@@ -6,11 +6,7 @@ const htmlutf8 = "text/html; charset=utf8"
 
 // config object definition
 type configuration struct {
-	port         string
-	quietLogging bool
-	fileLogging  bool
-	logFile      string
+	port      int
+	logfile   string
+	twtxtfile string
 }
-
-// config object
-var confObj = &configuration{}