mirror of
https://github.com/ceph/go-ceph
synced 2024-12-25 15:42:30 +00:00
contrib: remove refs to deprecated io/ioutil
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
parent
448e4b7f5c
commit
0d7e4e6347
@ -8,7 +8,7 @@ import (
|
||||
"go/build/constraint"
|
||||
"go/parser"
|
||||
"go/token"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
"regexp"
|
||||
"strings"
|
||||
@ -218,7 +218,7 @@ func CephGoFunctions(source, packageName string, ii *Inspector) error {
|
||||
}
|
||||
for _, fname := range toCheck {
|
||||
logger.Printf("Reading go file: %v\n", fname)
|
||||
src, err := ioutil.ReadFile(path.Join(p.Dir, fname))
|
||||
src, err := os.ReadFile(path.Join(p.Dir, fname))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user