aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-07-08 00:26:44 +0000
committerMax Magorsch <arzano@gentoo.org>2020-07-08 00:26:44 +0000
commit2abd3b06556fbc827316609bf96d2c64102948d6 (patch)
treeb6971e176dd5f2211b6a646cfb720f8c440efeae /pkg/app/handler/useflags
parentAdjust the base layout slightly (diff)
downloadsoko-2abd3b06556fbc827316609bf96d2c64102948d6.tar.gz
soko-2abd3b06556fbc827316609bf96d2c64102948d6.tar.bz2
soko-2abd3b06556fbc827316609bf96d2c64102948d6.zip
Go fmt the project
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'pkg/app/handler/useflags')
-rw-r--r--pkg/app/handler/useflags/global.go6
-rw-r--r--pkg/app/handler/useflags/index.go6
-rw-r--r--pkg/app/handler/useflags/local.go6
-rw-r--r--pkg/app/handler/useflags/search.go6
-rw-r--r--pkg/app/handler/useflags/show.go16
5 files changed, 20 insertions, 20 deletions
diff --git a/pkg/app/handler/useflags/global.go b/pkg/app/handler/useflags/global.go
index 3d37e37..45a9e06 100644
--- a/pkg/app/handler/useflags/global.go
+++ b/pkg/app/handler/useflags/global.go
@@ -37,9 +37,9 @@ func Global(w http.ResponseWriter, r *http.Request) {
templates := template.Must(
template.Must(
- template.Must(
- template.New("Show").ParseGlob("web/templates/layout/*.tmpl")).
- ParseGlob("web/templates/useflags/browseuseflagsheader.tmpl")).
+ template.Must(
+ template.New("Show").ParseGlob("web/templates/layout/*.tmpl")).
+ ParseGlob("web/templates/useflags/browseuseflagsheader.tmpl")).
ParseGlob("web/templates/useflags/list.tmpl"))
templates.ExecuteTemplate(w, "list.tmpl", data)
diff --git a/pkg/app/handler/useflags/index.go b/pkg/app/handler/useflags/index.go
index a70659a..e7febf8 100644
--- a/pkg/app/handler/useflags/index.go
+++ b/pkg/app/handler/useflags/index.go
@@ -25,9 +25,9 @@ func Index(w http.ResponseWriter, r *http.Request) {
templates := template.Must(
template.Must(
- template.Must(
- template.New("Show").ParseGlob("web/templates/layout/*.tmpl")).
- ParseGlob("web/templates/useflags/browseuseflagsheader.tmpl")).
+ template.Must(
+ template.New("Show").ParseGlob("web/templates/layout/*.tmpl")).
+ ParseGlob("web/templates/useflags/browseuseflagsheader.tmpl")).
ParseGlob("web/templates/useflags/index.tmpl"))
templates.ExecuteTemplate(w, "index.tmpl", data)
diff --git a/pkg/app/handler/useflags/local.go b/pkg/app/handler/useflags/local.go
index 4111831..23d1403 100644
--- a/pkg/app/handler/useflags/local.go
+++ b/pkg/app/handler/useflags/local.go
@@ -46,9 +46,9 @@ func Local(w http.ResponseWriter, r *http.Request) {
templates := template.Must(
template.Must(
- template.Must(
- template.New("Show").ParseGlob("web/templates/layout/*.tmpl")).
- ParseGlob("web/templates/useflags/browseuseflagsheader.tmpl")).
+ template.Must(
+ template.New("Show").ParseGlob("web/templates/layout/*.tmpl")).
+ ParseGlob("web/templates/useflags/browseuseflagsheader.tmpl")).
ParseGlob("web/templates/useflags/listlocal.tmpl"))
templates.ExecuteTemplate(w, "listlocal.tmpl", data)
diff --git a/pkg/app/handler/useflags/search.go b/pkg/app/handler/useflags/search.go
index 068c80a..2523834 100644
--- a/pkg/app/handler/useflags/search.go
+++ b/pkg/app/handler/useflags/search.go
@@ -45,9 +45,9 @@ func Search(w http.ResponseWriter, r *http.Request) {
templates := template.Must(
template.Must(
- template.Must(
- template.New("Show").ParseGlob("web/templates/layout/*.tmpl")).
- ParseGlob("web/templates/useflags/browseuseflagsheader.tmpl")).
+ template.Must(
+ template.New("Show").ParseGlob("web/templates/layout/*.tmpl")).
+ ParseGlob("web/templates/useflags/browseuseflagsheader.tmpl")).
ParseGlob("web/templates/useflags/search.tmpl"))
templates.ExecuteTemplate(w, "search.tmpl", data)
diff --git a/pkg/app/handler/useflags/show.go b/pkg/app/handler/useflags/show.go
index e0a377a..bcea074 100644
--- a/pkg/app/handler/useflags/show.go
+++ b/pkg/app/handler/useflags/show.go
@@ -72,11 +72,11 @@ func Show(w http.ResponseWriter, r *http.Request) {
templates := template.Must(
template.Must(
- template.Must(
- template.New("Show").Funcs(template.FuncMap{
- "replaceall": strings.ReplaceAll,
- }).ParseGlob("web/templates/layout/*.tmpl")).
- ParseGlob("web/templates/useflags/useflagsheader.tmpl")).
+ template.Must(
+ template.New("Show").Funcs(template.FuncMap{
+ "replaceall": strings.ReplaceAll,
+ }).ParseGlob("web/templates/layout/*.tmpl")).
+ ParseGlob("web/templates/useflags/useflagsheader.tmpl")).
ParseGlob("web/templates/useflags/show.tmpl"))
templates.ExecuteTemplate(w, "show.tmpl", data)
@@ -130,9 +130,9 @@ func ShowUseExpand(w http.ResponseWriter, r *http.Request, useExpand models.Usef
templates := template.Must(
template.Must(
- template.Must(
- template.New("Show").Funcs(funcMap).ParseGlob("web/templates/layout/*.tmpl")).
- ParseGlob("web/templates/useflags/useflagsheader.tmpl")).
+ template.Must(
+ template.New("Show").Funcs(funcMap).ParseGlob("web/templates/layout/*.tmpl")).
+ ParseGlob("web/templates/useflags/useflagsheader.tmpl")).
ParseGlob("web/templates/useflags/showexpand.tmpl"))
templates.ExecuteTemplate(w, "showexpand.tmpl", data)