From d529e6fb788ec45fcbc4b68c553a52755b4264af Mon Sep 17 00:00:00 2001 From: knbr13 Date: Mon, 6 Jan 2025 14:43:16 +0200 Subject: [PATCH] enh: use the io package instead of the deprecated ioutil package --- examples/client/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/client/main.go b/examples/client/main.go index d6d1485..70397c2 100644 --- a/examples/client/main.go +++ b/examples/client/main.go @@ -5,7 +5,7 @@ import ( "crypto/tls" "encoding/binary" "fmt" - "io/ioutil" + "io" "net/http" "time" @@ -57,7 +57,7 @@ func main() { for k, v := range resp.Trailer { fmt.Printf("Trailer: %s: %s\n", k, v) } - b, err = ioutil.ReadAll(resp.Body) + b, err = io.ReadAll(resp.Body) if err != nil { panic(err) }