diff options
author | Aoang <aoang@x2oe.com> | 2022-09-16 03:28:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 22:28:25 +0300 |
commit | a696949f6c1b7eec6d6529f8e93612e65d0f5ec2 (patch) | |
tree | 02ec801ab0c707cfdee13991926d83ac2ceaaece /fasthttputil | |
parent | Improve isTLSAlready check (diff) | |
download | fasthttp-a696949f6c1b7eec6d6529f8e93612e65d0f5ec2.tar.gz fasthttp-a696949f6c1b7eec6d6529f8e93612e65d0f5ec2.tar.bz2 fasthttp-a696949f6c1b7eec6d6529f8e93612e65d0f5ec2.zip |
Deprecate Go 1.15 (#1379)
* Dropping support for 1.15.
* Replaces Go 1.16 Deprecated functions
* Update test build flag
* Fix import sort and comment
* Update github.com/klauspost/compress to v1.15.9
https://github.com/klauspost/compress improved performance and changed Minimum version is 1.16, this should be the final supported release for Go 1.16 (https://github.com/klauspost/compress/commit/6d0019a95afa3221f7522d1f2eed0033b5e79470) .
Diffstat (limited to 'fasthttputil')
-rw-r--r-- | fasthttputil/inmemory_listener_test.go | 3 | ||||
-rw-r--r-- | fasthttputil/pipeconns_test.go | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/fasthttputil/inmemory_listener_test.go b/fasthttputil/inmemory_listener_test.go index 907a8d0..8a8d16a 100644 --- a/fasthttputil/inmemory_listener_test.go +++ b/fasthttputil/inmemory_listener_test.go @@ -5,7 +5,6 @@ import ( "context" "fmt" "io" - "io/ioutil" "net" "net/http" "sync" @@ -147,7 +146,7 @@ func testInmemoryListenerHTTPSingle(t *testing.T, client *http.Client, content s if err != nil { t.Fatalf("unexpected error: %v", err) } - b, err := ioutil.ReadAll(res.Body) + b, err := io.ReadAll(res.Body) if err != nil { t.Fatalf("unexpected error: %v", err) } diff --git a/fasthttputil/pipeconns_test.go b/fasthttputil/pipeconns_test.go index e81b0ad..f460639 100644 --- a/fasthttputil/pipeconns_test.go +++ b/fasthttputil/pipeconns_test.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "net" "testing" "time" @@ -162,7 +161,7 @@ func testPipeConnsCloseWhileReadWrite(t *testing.T) { readCh := make(chan error) go func() { var err error - if _, err = io.Copy(ioutil.Discard, c1); err != nil { + if _, err = io.Copy(io.Discard, c1); err != nil { if err != errConnectionClosed { err = fmt.Errorf("unexpected error: %w", err) } else { |