all: remove deprecated use of io/ioutil

This commit is contained in:
Will Norris 2023-01-31 20:30:38 -08:00
parent 12d8f92d33
commit 5ffd8db241
6 changed files with 9 additions and 14 deletions

View file

@ -12,7 +12,6 @@ import (
"errors"
"flag"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
@ -65,7 +64,7 @@ func sign(key string, s string, urlOnly bool) ([]byte, error) {
func parseKey(s string) ([]byte, error) {
if strings.HasPrefix(s, "@") {
return ioutil.ReadFile(s[1:])
return os.ReadFile(s[1:])
}
return []byte(s), nil
}