diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-10-13 13:01:41 +0300 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-10-13 13:01:51 +0300 |
commit | a98191f43560ea2ddbbf848c1c727daeed2e39ae (patch) | |
tree | bc7fb26998371d914ba7648c035bcfff55a43a67 /compress.go | |
parent | Client, HostClient, PipelineClient: verify TLS server name (diff) | |
download | fasthttp-a98191f43560ea2ddbbf848c1c727daeed2e39ae.tar.gz fasthttp-a98191f43560ea2ddbbf848c1c727daeed2e39ae.tar.bz2 fasthttp-a98191f43560ea2ddbbf848c1c727daeed2e39ae.zip |
Use standard compress/* packages instead of github.com/klauspost/compress/*
The reasons are:
- @klauspost optimized standard packages in go1.7+
- This removes an external dependency from fasthttp
Diffstat (limited to 'compress.go')
-rw-r--r-- | compress.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/compress.go b/compress.go index c3b81cf..8747de1 100644 --- a/compress.go +++ b/compress.go @@ -1,14 +1,13 @@ package fasthttp import ( + "compress/flate" + "compress/gzip" + "compress/zlib" "fmt" "io" "os" "sync" - - "github.com/klauspost/compress/flate" - "github.com/klauspost/compress/gzip" - "github.com/klauspost/compress/zlib" ) // Supported compression levels. |