diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-04-19 00:53:33 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-04-19 01:01:52 +0200 |
| commit | 587ac99d26a026c4441ce224f52105d2dbd3751b (patch) | |
| tree | 83b8d130d03c958e410870e9705204fc3661eb7d /util | |
| parent | 23429646da1d07d6a8632263a167f167d9971f35 (diff) | |
| download | go-schwift-587ac99d26a026c4441ce224f52105d2dbd3751b.tar.gz | |
run `go fix ./...`
Diffstat (limited to 'util')
| -rwxr-xr-x | util/render_template.go | 4 |
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...) } |
