+5
-5
lines changedFilter options
+5
-5
lines changed Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
1
1
package whitelist
2
2
3
3
import (
4
-
"io/ioutil"
4
+
"io"
5
5
"log"
6
6
"net/http"
7
7
"net/http/httptest"
@@ -31,7 +31,7 @@ func testHTTPResponse(url string, t *testing.T) string {
31
31
t.Fatalf("%v", err)
32
32
}
33
33
34
-
body, err := ioutil.ReadAll(resp.Body)
34
+
body, err := io.ReadAll(resp.Body)
35
35
if err != nil {
36
36
t.Fatalf("%v", err)
37
37
}
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import (
4
4
"bytes"
5
5
"encoding/json"
6
6
"errors"
7
-
"io/ioutil"
7
+
"io"
8
8
"log"
9
9
"net"
10
10
"net/http"
@@ -199,7 +199,7 @@ func TestNetConn(t *testing.T) {
199
199
if err != nil {
200
200
t.Fatalf("%v", err)
201
201
}
202
-
body, err := ioutil.ReadAll(conn)
202
+
body, err := io.ReadAll(conn)
203
203
if err != nil {
204
204
t.Fatalf("%v", err)
205
205
}
@@ -213,7 +213,7 @@ func TestNetConn(t *testing.T) {
213
213
if err != nil {
214
214
t.Fatalf("%v", err)
215
215
}
216
-
body, err = ioutil.ReadAll(conn)
216
+
body, err = io.ReadAll(conn)
217
217
if err != nil {
218
218
t.Fatalf("%v", err)
219
219
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4