aboutsummaryrefslogtreecommitdiff
path: root/pkg/app
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app')
-rw-r--r--pkg/app/home/utils.go4
-rw-r--r--pkg/app/popular/utils.go6
2 files changed, 5 insertions, 5 deletions
diff --git a/pkg/app/home/utils.go b/pkg/app/home/utils.go
index daab2de..f854549 100644
--- a/pkg/app/home/utils.go
+++ b/pkg/app/home/utils.go
@@ -17,9 +17,9 @@ func renderIndexTemplate(w http.ResponseWriter, templateData interface{}) {
template.Must(
template.New("Show").
Funcs(template.FuncMap{
- "makeMessage" : func(headers map[string][]string) models.Message {
+ "makeMessage": func(headers map[string][]string) models.Message {
return models.Message{
- Headers: headers,
+ Headers: headers,
}
},
}).
diff --git a/pkg/app/popular/utils.go b/pkg/app/popular/utils.go
index 6cfeff7..c5772d7 100644
--- a/pkg/app/popular/utils.go
+++ b/pkg/app/popular/utils.go
@@ -14,12 +14,12 @@ func renderPopularThreads(w http.ResponseWriter, templateData interface{}) {
template.Must(
template.New("Popular").
Funcs(template.FuncMap{
- "makeMessage" : func(headers map[string][]string) models.Message {
+ "makeMessage": func(headers map[string][]string) models.Message {
return models.Message{
- Headers: headers,
+ Headers: headers,
}
},
- }).
+ }).
ParseGlob("web/templates/layout/*.tmpl")).
ParseGlob("web/templates/popular/*.tmpl"))