From e0b51e3c9659f13d9030061f1cd2a40f804677af Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Thu, 21 Dec 2023 11:19:22 +0100 Subject: [PATCH] Remove UploadOnly value. --- main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 517ee6c..7d85a79 100644 --- a/main.go +++ b/main.go @@ -68,13 +68,11 @@ type File struct { } type FilesData struct { - Files []File - UploadOnly bool + Files []File } type IndexData struct { - Host string - UploadOnly bool + Host string } func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error { @@ -83,8 +81,7 @@ func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Con func Index(c echo.Context) error { data := IndexData{ - Host: c.Request().Host, - UploadOnly: false, + Host: c.Request().Host, } return c.Render(http.StatusOK, "index", data) }