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 /stackless | |
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 'stackless')
-rw-r--r-- | stackless/writer_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stackless/writer_test.go b/stackless/writer_test.go index 7f57bbd..fdbe16b 100644 --- a/stackless/writer_test.go +++ b/stackless/writer_test.go @@ -6,7 +6,6 @@ import ( "compress/gzip" "fmt" "io" - "io/ioutil" "testing" "time" ) @@ -96,7 +95,7 @@ func testWriterReuse(w Writer, r io.Reader, newReader func(io.Reader) io.Reader) w.Close() zr := newReader(r) - data, err := ioutil.ReadAll(zr) + data, err := io.ReadAll(zr) if err != nil { return fmt.Errorf("unexpected error: %w, data=%q", err, data) } |