gofmt -s -w .

This commit is contained in:
Nazar Kanaev
2021-04-06 08:43:15 +01:00
parent 614dcc8975
commit 2df2f41516
11 changed files with 30 additions and 34 deletions

View File

@@ -58,8 +58,8 @@ func (s *Server) handler() http.Handler {
}
func (s *Server) handleIndex(c *router.Context) {
c.HTML(http.StatusOK, assets.Template("index.html"), map[string]interface{} {
"settings": s.db.GetSettings(),
c.HTML(http.StatusOK, assets.Template("index.html"), map[string]interface{}{
"settings": s.db.GetSettings(),
"authenticated": s.Username != "" && s.Password != "",
})
}