diff --git a/read.go b/read.go index cac21d4..3fadf15 100644 --- a/read.go +++ b/read.go @@ -3,8 +3,9 @@ package warc import ( "bufio" "bytes" - "compress/gzip" "io" + + gzip "github.com/klauspost/compress/gzip" ) // Reader store the bufio.Reader and gzip.Reader for a WARC file diff --git a/transport.go b/transport.go index b453e86..1d88086 100644 --- a/transport.go +++ b/transport.go @@ -1,11 +1,12 @@ package warc import ( - "compress/gzip" "crypto/tls" "net/http" "net/url" "time" + + gzip "github.com/klauspost/compress/gzip" ) type customTransport struct { diff --git a/utils.go b/utils.go index 54531d5..088400c 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,6 @@ package warc import ( "bufio" "bytes" - "compress/gzip" "crypto/sha1" "encoding/base32" "errors" @@ -14,6 +13,8 @@ import ( "strings" "time" + gzip "github.com/klauspost/compress/gzip" + "github.com/klauspost/compress/zstd" ) diff --git a/write.go b/write.go index c0b24c5..8857489 100644 --- a/write.go +++ b/write.go @@ -2,13 +2,14 @@ package warc import ( "bufio" - "compress/gzip" "fmt" "io" "strconv" "strings" "time" + gzip "github.com/klauspost/compress/gzip" + "github.com/klauspost/compress/zstd" uuid "github.com/satori/go.uuid" )