We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3a1135 commit eccf7b7Copy full SHA for eccf7b7
1 file changed
v2/awsutil/awsutil.go
@@ -3,7 +3,7 @@ package awsutil
3
4
import (
5
"errors"
6
- "io/ioutil"
+ "io"
7
"net"
8
"net/http"
9
"os/exec"
@@ -19,7 +19,7 @@ func amazonEC2PrivateIPv4() (net.IP, error) {
19
}
20
defer res.Body.Close()
21
22
- body, err := ioutil.ReadAll(res.Body)
+ body, err := io.ReadAll(res.Body)
23
if err != nil {
24
return nil, err
25
0 commit comments