diff --git a/go.mod b/go.mod index 9f0e73b..8179d03 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/hunter007/password -go 1.16 +go 1.13 require golang.org/x/crypto v0.9.0 diff --git a/validator.go b/validator.go index af54d5e..9641295 100644 --- a/validator.go +++ b/validator.go @@ -2,7 +2,7 @@ package password import ( "errors" - "io" + "io/ioutil" "net/http" "strings" "unicode" @@ -38,7 +38,7 @@ func (opt *ValidatorOption) loadCommonPasswords() error { } defer resp.Body.Close() - bs, err := io.ReadAll(resp.Body) + bs, err := ioutil.ReadAll(resp.Body) if err != nil { return err }