aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-19 15:59:46 +0200
committerMax Magorsch <arzano@gentoo.org>2020-06-19 15:59:46 +0200
commit7e4fe28c21bb42788d974114b2d4f160d5901b6a (patch)
treee8de6b2c86507da87b8e2e78d62bf7deb863a891
parentInitial version (diff)
downloadarchives-7e4fe28c21bb42788d974114b2d4f160d5901b6a.tar.gz
archives-7e4fe28c21bb42788d974114b2d4f160d5901b6a.tar.bz2
archives-7e4fe28c21bb42788d974114b2d4f160d5901b6a.zip
Run go fmt
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r--pkg/app/home/utils.go4
-rw-r--r--pkg/app/popular/utils.go6
-rw-r--r--pkg/models/thread.go8
3 files changed, 9 insertions, 9 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"))
diff --git a/pkg/models/thread.go b/pkg/models/thread.go
index ebeff2a..3f50bde 100644
--- a/pkg/models/thread.go
+++ b/pkg/models/thread.go
@@ -1,8 +1,8 @@
package models
type Threads []struct {
- Id string
- Headers map[string][]string
- Subject string
- Count int
+ Id string
+ Headers map[string][]string
+ Subject string
+ Count int
}