refactor: change deprecated "io/ioutil" package to recommended "io" package

This commit is contained in:
am3o 2024-02-17 12:47:22 +01:00
parent 35984c0876
commit acce1f1fd9
No known key found for this signature in database
GPG key ID: F76214F50EEA64B5
14 changed files with 25 additions and 39 deletions

View file

@ -3,7 +3,6 @@ package snowflake_client
import (
"errors"
"io"
"io/ioutil"
"log"
"math/rand"
"net/http"
@ -115,7 +114,7 @@ func (r *ampCacheRendezvous) Exchange(encPollReq []byte) ([]byte, error) {
if err != nil {
return nil, err
}
encPollResp, err := ioutil.ReadAll(dec)
encPollResp, err := io.ReadAll(dec)
if err != nil {
return nil, err
}