Created
June 10, 2019 08:31
-
-
Save fd0/32369c595ce9bafc47453170d7c56580 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/go.mod b/go.mod | |
new file mode 100644 | |
index 0000000..3923413 | |
--- /dev/null | |
+++ b/go.mod | |
@@ -0,0 +1,11 @@ | |
+module github.com/klauspost/compress | |
+ | |
+go 1.12 | |
+ | |
+require ( | |
+ github.com/DataDog/zstd v1.4.0 | |
+ github.com/cespare/xxhash v1.1.0 // indirect | |
+ github.com/cespare/xxhash/v2 v2.0.0 | |
+ github.com/google/go-cmp v0.3.0 | |
+ github.com/klauspost/cpuid v1.2.1 | |
+) | |
diff --git a/go.sum b/go.sum | |
new file mode 100644 | |
index 0000000..ac4686b | |
--- /dev/null | |
+++ b/go.sum | |
@@ -0,0 +1,14 @@ | |
+github.com/DataDog/zstd v1.4.0 h1:vhoV+DUHnRZdKW1i5UMjAk2G4JY8wN4ayRfYDNdEhwo= | |
+github.com/DataDog/zstd v1.4.0/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= | |
+github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= | |
+github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= | |
+github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= | |
+github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= | |
+github.com/cespare/xxhash/v2 v2.0.0 h1:Eb1IiuHmi3FhT12NKfqCQXSXRqc4NTMvgJoREemrSt4= | |
+github.com/cespare/xxhash/v2 v2.0.0/go.mod h1:MaMeaVDXZNmTpkOyhVs3/WfjgobkbQgfrVnrr3DyZL0= | |
+github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= | |
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= | |
+github.com/klauspost/cpuid v1.2.1 h1:vJi+O/nMdFt0vqm8NZBI6wzALWdA2X+egi0ogNyrC/w= | |
+github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= | |
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ= | |
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= | |
diff --git a/zstd/enc_fast.go b/zstd/enc_fast.go | |
index c919e5f..f2b27f8 100644 | |
--- a/zstd/enc_fast.go | |
+++ b/zstd/enc_fast.go | |
@@ -7,7 +7,7 @@ package zstd | |
import ( | |
"math/bits" | |
- "github.com/cespare/xxhash" | |
+ "github.com/cespare/xxhash/v2" | |
) | |
const ( | |
diff --git a/zstd/encoder.go b/zstd/encoder.go | |
index 9226d73..9ceb71f 100644 | |
--- a/zstd/encoder.go | |
+++ b/zstd/encoder.go | |
@@ -11,7 +11,7 @@ import ( | |
rdebug "runtime/debug" | |
"sync" | |
- "github.com/cespare/xxhash" | |
+ "github.com/cespare/xxhash/v2" | |
) | |
// Encoder provides encoding to Zstandard. | |
diff --git a/zstd/encoder_test.go b/zstd/encoder_test.go | |
index de40f41..0b0cded 100644 | |
--- a/zstd/encoder_test.go | |
+++ b/zstd/encoder_test.go | |
@@ -14,7 +14,7 @@ import ( | |
"testing" | |
"time" | |
- "github.com/cespare/xxhash" | |
+ "github.com/cespare/xxhash/v2" | |
"github.com/klauspost/compress/zip" | |
) | |
diff --git a/zstd/framedec.go b/zstd/framedec.go | |
index 4c2c3cc..c25eec6 100644 | |
--- a/zstd/framedec.go | |
+++ b/zstd/framedec.go | |
@@ -12,7 +12,7 @@ import ( | |
"io" | |
"sync" | |
- "github.com/cespare/xxhash" | |
+ "github.com/cespare/xxhash/v2" | |
) | |
type frameDec struct { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment