aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
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...)
}