mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-07-22 15:53:49 -04:00
chore: remove refs to deprecated io/ioutil (#2717)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
@@ -3,7 +3,7 @@ package cmdarg
|
||||
import (
|
||||
"bytes"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
)
|
||||
|
||||
// LoadArg loads one arg, maybe an remote url, or local file path
|
||||
@@ -18,7 +18,7 @@ func LoadArg(arg string) (out io.Reader, err error) {
|
||||
|
||||
// LoadArgToBytes loads one arg to []byte, maybe an remote url, or local file path
|
||||
func LoadArgToBytes(arg string) (out []byte, err error) {
|
||||
out, err = ioutil.ReadFile(arg)
|
||||
out, err = os.ReadFile(arg)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user