mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
interface{} to any.
This commit is contained in:
@@ -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...)
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user