all: replace deprecated ioutil references

This PR removes calls to ioutil library and replaces them
with their new locations in the io and os packages.

Fixes #9034
Updates #5210

Signed-off-by: Marwan Sulaiman <marwan@tailscale.com>
This commit is contained in:
Marwan Sulaiman
2023-08-23 16:42:44 +01:00
committed by Marwan Sulaiman
parent 1b8a538953
commit 9c07f4f512
5 changed files with 7 additions and 12 deletions

View File

@@ -16,7 +16,6 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"math/big"
"net"
"net/http"
@@ -523,7 +522,7 @@ func TestFunnel(t *testing.T) {
t.Errorf("unexpected status code: %v", resp.StatusCode)
return
}
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
t.Fatal(err)
}