all: replace deprecated io/ioutil with io and os (#3509)

This commit is contained in:
Oleksandr Redko
2023-09-25 21:41:59 +03:00
committed by GitHub
parent 224a2805a4
commit 899ba72505
29 changed files with 76 additions and 95 deletions

View File

@ -7,7 +7,6 @@ import (
"bytes"
"encoding/binary"
"fmt"
"io/ioutil"
"log"
"net"
"os"
@ -19,7 +18,7 @@ import (
// for testing
var (
uid = os.Getuid()
readFile = ioutil.ReadFile
readFile = os.ReadFile
)
type errConnectionNotFound struct {