refactor: remove ioutil module usage

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2023-03-11 12:27:30 +01:00
parent 291c4f6361
commit 82d04d63b6
5 changed files with 11 additions and 14 deletions

View File

@ -7,7 +7,7 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net"
"strconv"
"strings"
@ -122,7 +122,7 @@ func decode(record []string) (*mdnsTxt, error) {
return nil, err
}
rbuf, err := ioutil.ReadAll(zr)
rbuf, err := io.ReadAll(zr)
if err != nil {
return nil, err
}