@@ -16,7 +16,7 @@ import (
1616
1717type TemplateMiddleware struct {
1818 Next http.Handler
19- Variables map [string ]interface {}
19+ Variables map [string ]any
2020}
2121
2222func (data TemplateMiddleware ) Use () http.Handler {
@@ -30,7 +30,7 @@ func (data TemplateMiddleware) Use() http.Handler {
3030 log .Error ("Could not get Request Body: " , err .Error ())
3131 }
3232
33- bodyData := map [string ]interface {} {}
33+ bodyData := map [string ]any {}
3434
3535 var modifiedBody bool
3636
@@ -100,7 +100,7 @@ func (data TemplateMiddleware) Use() http.Handler {
100100 })
101101}
102102
103- func TemplateBody (data map [string ]interface {} , VARIABLES any ) (map [string ]interface {} , bool , error ) {
103+ func TemplateBody (data map [string ]any , VARIABLES any ) (map [string ]any , bool , error ) {
104104 var modified bool
105105
106106 templatedData , err := templating .RenderJSONTemplate ("body" , data , VARIABLES )
@@ -139,7 +139,7 @@ func TemplatePath(reqUrl *url.URL, VARIABLES any) (string, bool, error) {
139139 return reqPath , modified , nil
140140}
141141
142- func TemplateQuery (reqUrl * url.URL , data map [string ]interface {} , VARIABLES any ) (string , map [string ]interface {} , bool , error ) {
142+ func TemplateQuery (reqUrl * url.URL , data map [string ]any , VARIABLES any ) (string , map [string ]any , bool , error ) {
143143 var modified bool
144144
145145 decodedQuery , _ := url .QueryUnescape (reqUrl .RawQuery )
0 commit comments