diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-09 04:00:21 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-09 04:00:21 -0400 |
commit | 7410b8cd74d0f702b087577b1793bcf541ac8371 (patch) | |
tree | dbc1aa568abc43fd7048d0587eecbb2a4d950cbb /svc/conf.go | |
parent | 7f76158b9565d804ada682c1a9aa83c22cb8de71 (diff) | |
download | getwtxt-7410b8cd74d0f702b087577b1793bcf541ac8371.tar.gz |
init staticAssets explicitly on startup
Diffstat (limited to 'svc/conf.go')
-rw-r--r-- | svc/conf.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/svc/conf.go b/svc/conf.go index 9099477..5f4233b 100644 --- a/svc/conf.go +++ b/svc/conf.go @@ -1,7 +1,6 @@ package svc // import "github.com/getwtxt/getwtxt/svc" import ( - "html/template" "log" "os" "path/filepath" @@ -40,14 +39,6 @@ type Instance struct { Desc string `yaml:"Instance.Description"` } -func initTemplates() *template.Template { - confObj.Mu.RLock() - assetsDir := confObj.AssetsDir - confObj.Mu.RUnlock() - - return template.Must(template.ParseFiles(assetsDir + "/tmpl/index.html")) -} - func initLogging() { confObj.Mu.RLock() |