From b228360a02ae85b5ce25ca70eb5e95ca48642aee Mon Sep 17 00:00:00 2001 From: surfmuggle <1271555+surfmuggle@users.noreply.github.com> Date: Sat, 11 Apr 2026 12:04:12 +0200 Subject: [PATCH 1/2] Remove unused import 'io/ioutil' Removed unused 'io/ioutil' import from client.go.plush --- otohttp/templates/client.go.plush | 1 - 1 file changed, 1 deletion(-) diff --git a/otohttp/templates/client.go.plush b/otohttp/templates/client.go.plush index 82f84c1..2512456 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" From 4cf4a63dd0f0b8252ecc6b74dd38bc1e6eb1007f Mon Sep 17 00:00:00 2001 From: surfmuggle <1271555+surfmuggle@users.noreply.github.com> Date: Sat, 11 Apr 2026 12:08:10 +0200 Subject: [PATCH 2/2] Replace ioutil.ReadAll with io.ReadAll --- otohttp/templates/client.go.plush | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otohttp/templates/client.go.plush b/otohttp/templates/client.go.plush index 2512456..df8b539 100644 --- a/otohttp/templates/client.go.plush +++ b/otohttp/templates/client.go.plush @@ -96,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") }