interface{} to any.

This commit is contained in:
Miroslav Šedivý
2023-11-25 22:54:35 +01:00
parent ffeef5e887
commit a6169da135
7 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -29,6 +29,6 @@ func Color(str string) string {
return result + str[lastIndex:]
}
func Colorf(format string, a ...interface{}) string {
func Colorf(format string, a ...any) string {
return fmt.Sprintf(Color(format), a...)
}
+1 -1
View File
@@ -17,7 +17,7 @@ func Swal2Response(w http.ResponseWriter, body string) {
http.Error(w, err.Error(), 500)
}
err = tmpl.Execute(w, map[string]interface{}{
err = tmpl.Execute(w, map[string]any{
"Body": template.HTML(body),
})