Stop using deprecated functions

This commit is contained in:
Ingo Oppermann
2022-08-15 16:30:24 +03:00
parent 96d8d51a7d
commit dfc12ab9fb
18 changed files with 65 additions and 63 deletions

View File

@@ -2,7 +2,7 @@ package util
import (
"fmt"
"io/ioutil"
"io"
"net/url"
"strings"
@@ -24,7 +24,7 @@ func ShouldBindJSONValidation(c echo.Context, obj interface{}, validate bool) er
return fmt.Errorf("request doesn't contain JSON content")
}
body, err := ioutil.ReadAll(req.Body)
body, err := io.ReadAll(req.Body)
if err != nil {
return err
}