diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-05 15:36:23 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-05 15:36:23 -0400 |
commit | fd43c61bd128ad77b22db0537a9a4eb58490b0b5 (patch) | |
tree | 4c5fa7b33fadbf7c3e14e69b7d68ce280bc3810a /init_test.go | |
parent | 4658fe82be3e9d95e93fa5c7c7ca64a15cf2f1a1 (diff) | |
download | getwtxt-fd43c61bd128ad77b22db0537a9a4eb58490b0b5.tar.gz |
moved bulk of code to its own package to clean up source tree
Diffstat (limited to 'init_test.go')
-rw-r--r-- | init_test.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/init_test.go b/init_test.go deleted file mode 100644 index bffe036..0000000 --- a/init_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - "fmt" - "log" - "os" -) - -var testport = fmt.Sprintf(":%v", confObj.Port) -var hasInit = false - -func initTestConf() { - if !hasInit { - initConfig() - tmpls = initTemplates() - logToNull() - hasInit = true - } -} - -func logToNull() { - hush, err := os.Open("/dev/null") - if err != nil { - log.Printf("%v\n", err) - } - log.SetOutput(hush) -} |