aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-07-29 21:43:59 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-07-29 21:43:59 +0200
commitc43c6d168053d9c9abb2999457b625e32ab1c7b2 (patch)
tree42e99f5118baea9e34f39b91440eb4898da0bc26 /src
parent38230599d68ae097e886222f5c2384fe6dd9b5bc (diff)
Run go fmt
Diffstat (limited to 'src')
-rw-r--r--src/email/email.go4
-rw-r--r--src/http.go2
-rw-r--r--src/i18n/i18n.go2
-rw-r--r--src/templates.go10
4 files changed, 9 insertions, 9 deletions
diff --git a/src/email/email.go b/src/email/email.go
index a1f7f0b..16a4813 100644
--- a/src/email/email.go
+++ b/src/email/email.go
@@ -4,10 +4,10 @@ package email
import (
"crypto/tls"
+ "errors"
"fmt"
- "math/rand/v2"
"log"
- "errors"
+ "math/rand/v2"
"net/smtp"
"strconv"
"time"
diff --git a/src/http.go b/src/http.go
index 362a2cd..db1316f 100644
--- a/src/http.go
+++ b/src/http.go
@@ -62,7 +62,7 @@ func chain(xs ...middleware) middleware {
func firstHandler(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ctx := context.WithValue(r.Context(), "td", &templateData{
- Debugp: Debugp,
+ Debugp: Debugp,
Printers: i18n.Printers,
})
next.ServeHTTP(w, r.WithContext(ctx))
diff --git a/src/i18n/i18n.go b/src/i18n/i18n.go
index cf82630..9b0de00 100644
--- a/src/i18n/i18n.go
+++ b/src/i18n/i18n.go
@@ -356,7 +356,7 @@ func (p Printer) Mftoa(n float64) string {
func (p Printer) Sprintf(format string, args ...map[string]any) string {
var bob strings.Builder
vars := map[string]any{
- "-": "a",
+ "-": "a",
"Null": "",
}
for _, arg := range args {
diff --git a/src/templates.go b/src/templates.go
index ef7b0ec..c2a40a5 100644
--- a/src/templates.go
+++ b/src/templates.go
@@ -28,11 +28,11 @@ var (
errorTmpl *template.Template
templates map[string]*template.Template
funcmap = map[string]any{
- "locales": i18n.Locales,
- "map": templateMakeMap,
- "safe": asHTML,
- "toUpper": strings.ToUpper,
- "tuple": templateMakeTuple,
+ "locales": i18n.Locales,
+ "map": templateMakeMap,
+ "safe": asHTML,
+ "toUpper": strings.ToUpper,
+ "tuple": templateMakeTuple,
}
)