Skip to content

Commit 97f71e1

Browse files
committed
Use newer method
1 parent 060a89a commit 97f71e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"io/ioutil"
5+
"io"
66
"net/http"
77
{{#body.has_url_encoded_body}}
88
"net/url"
@@ -102,7 +102,7 @@ func send{{{codeSlug}}}() {
102102
}
103103

104104
// Read Response Body
105-
respBody, _ := ioutil.ReadAll(resp.Body)
105+
respBody, _ := io.ReadAll(resp.Body)
106106

107107
// Display Results
108108
fmt.Println("response Status : ", resp.Status)

0 commit comments

Comments
 (0)