mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 20:39:41 +00:00
golang: Stop using io/ioutils
The package has been deprecated as part of 1.16 and the same functionality is now provided by either the io or the os package. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -9,7 +9,6 @@ package main
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
@@ -56,7 +55,7 @@ func (r *HexByteReader) Read(p []byte) (n int, err error) {
|
||||
}
|
||||
|
||||
// read the entire file
|
||||
bytes, err := ioutil.ReadAll(r.f)
|
||||
bytes, err := io.ReadAll(r.f)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user