diff --git a/otohttp/templates/client.go.plush b/otohttp/templates/client.go.plush index 82f84c1..df8b539 100644 --- a/otohttp/templates/client.go.plush +++ b/otohttp/templates/client.go.plush @@ -8,7 +8,6 @@ import ( "context" "encoding/json" "io" - "io/ioutil" "net/http" "strings" "time" @@ -97,7 +96,7 @@ func New<%= service.Name %>(client *Client) *<%= service.Name %> { defer decodedBody.Close() bodyReader = decodedBody } - respBodyBytes, err := ioutil.ReadAll(bodyReader) + respBodyBytes, err := io.ReadAll(bodyReader) if err != nil { return nil, errors.Wrap(err, "<%= service.Name %>.<%= method.Name %>: read response body") }