1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 04:17:03 +00:00

update dependencies

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-08-15 23:29:20 +03:00
parent de4f462198
commit a8a3afea22
186 changed files with 694 additions and 689 deletions

View File

@@ -41,7 +41,7 @@ func TestClientJSON(t *testing.T) {
client.DrainResponseBody(resp)
}
func sendJSON(t *testing.T, v interface{}) http.HandlerFunc {
func sendJSON(t *testing.T, v any) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json; charset=utf-8")
if err := json.NewEncoder(w).Encode(v); err != nil {
@@ -50,7 +50,7 @@ func sendJSON(t *testing.T, v interface{}) http.HandlerFunc {
}
}
func readJSON(t *testing.T, ptr interface{}, expected interface{}) http.HandlerFunc {
func readJSON(t *testing.T, ptr any, expected any) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if err := json.NewDecoder(r.Body).Decode(ptr); err != nil {
t.Fatal(err)