aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-19 00:53:33 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-19 01:01:52 +0200
commit587ac99d26a026c4441ce224f52105d2dbd3751b (patch)
tree83b8d130d03c958e410870e9705204fc3661eb7d /util
parent23429646da1d07d6a8632263a167f167d9971f35 (diff)
downloadgo-schwift-587ac99d26a026c4441ce224f52105d2dbd3751b.tar.gz
run `go fix ./...`
Diffstat (limited to 'util')
-rwxr-xr-xutil/render_template.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/render_template.go b/util/render_template.go
index 03a4628..64ef939 100755
--- a/util/render_template.go
+++ b/util/render_template.go
@@ -39,7 +39,7 @@ func main() {
}
dataStr, templateStr := sections[0], sections[1]
- data := make(map[string]interface{})
+ data := make(map[string]any)
failIfError(json.Unmarshal([]byte(dataStr), &data))
tmpl, err := template.New("tmpl").Parse(templateStr)
@@ -54,7 +54,7 @@ func failIfError(err error) {
}
}
-func fail(msg string, args ...interface{}) {
+func fail(msg string, args ...any) {
if len(args) > 0 {
msg = fmt.Sprintf(msg, args...)
}