Update to Go 1.19

This commit is contained in:
eikendev 2023-02-11 23:41:42 +01:00
parent 21a4d156e1
commit 2ddc0fbd74
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
12 changed files with 85 additions and 43 deletions

View file

@ -3,7 +3,7 @@ package credentials
import (
"crypto/sha1" //#nosec G505 -- False positive, see the use below.
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"
@ -40,7 +40,7 @@ func IsPasswordPwned(password string) (bool, error) {
}
defer resp.Body.Close()
bodyText, err := ioutil.ReadAll(resp.Body)
bodyText, err := io.ReadAll(resp.Body)
if err != nil {
log.L.Fatal(err)
}