Browse Source

Merge pull request #26 from sbinet-staging/vgo-support

lz4: add vgo support
Pierre Curto 7 years ago
parent
commit
68a72905ba
13 changed files with 20 additions and 11 deletions
  1. 5 1
      .travis.yml
  2. 1 1
      README.md
  3. 1 1
      bench_test.go
  4. 1 1
      block_test.go
  5. 1 1
      fuzz/lz4.go
  6. 3 0
      go.mod
  7. 2 0
      go.sum
  8. 1 1
      internal/xxh32/xxh32zero_test.go
  9. 1 1
      lz4c/main.go
  10. 1 1
      reader.go
  11. 1 1
      reader_test.go
  12. 1 1
      writer.go
  13. 1 1
      writer_test.go

+ 5 - 1
.travis.yml

@@ -1,9 +1,13 @@
 language: go
 
+env:
+  - GO111MODULE=off
+  - GO111MODULE=on
+
 go:
-  - 1.8.x
   - 1.9.x
   - 1.10.x
+  - 1.11.x
   - master
 
 matrix:

+ 1 - 1
README.md

@@ -6,7 +6,7 @@ LZ4 compression and decompression in pure Go.
 ## Usage
 
 ```go
-import "github.com/pierrec/lz4"
+import "github.com/pierrec/lz4/v2"
 ```
 
 ## Description

+ 1 - 1
bench_test.go

@@ -6,7 +6,7 @@ import (
 	"io/ioutil"
 	"testing"
 
-	"github.com/pierrec/lz4"
+	lz4 "github.com/pierrec/lz4/v2"
 )
 
 func BenchmarkCompress(b *testing.B) {

+ 1 - 1
block_test.go

@@ -8,7 +8,7 @@ import (
 	"reflect"
 	"testing"
 
-	"github.com/pierrec/lz4"
+	lz4 "github.com/pierrec/lz4/v2"
 )
 
 type testcase struct {

+ 1 - 1
fuzz/lz4.go

@@ -4,7 +4,7 @@ import (
 	"bytes"
 	"io/ioutil"
 
-	"github.com/pierrec/lz4"
+	lz4 "github.com/pierrec/lz4/v2"
 )
 
 // lz4.Reader fuzz function

+ 3 - 0
go.mod

@@ -0,0 +1,3 @@
+module github.com/pierrec/lz4/v2
+
+require github.com/pkg/profile v1.2.1

+ 2 - 0
go.sum

@@ -0,0 +1,2 @@
+github.com/pkg/profile v1.2.1 h1:F++O52m40owAmADcojzM+9gyjmMOY/T4oYJkgFDH8RE=
+github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA=

+ 1 - 1
internal/xxh32/xxh32zero_test.go

@@ -6,7 +6,7 @@ import (
 	"hash/fnv"
 	"testing"
 
-	"github.com/pierrec/lz4/internal/xxh32"
+	"github.com/pierrec/lz4/v2/internal/xxh32"
 )
 
 type test struct {

+ 1 - 1
lz4c/main.go

@@ -13,7 +13,7 @@ import (
 	"runtime"
 	"strings"
 
-	"github.com/pierrec/lz4"
+	lz4 "github.com/pierrec/lz4/v2"
 	"github.com/pkg/profile"
 )
 

+ 1 - 1
reader.go

@@ -6,7 +6,7 @@ import (
 	"io"
 	"io/ioutil"
 
-	"github.com/pierrec/lz4/internal/xxh32"
+	"github.com/pierrec/lz4/v2/internal/xxh32"
 )
 
 // Reader implements the LZ4 frame decoder.

+ 1 - 1
reader_test.go

@@ -9,7 +9,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/pierrec/lz4"
+	lz4 "github.com/pierrec/lz4/v2"
 )
 
 func TestReader(t *testing.T) {

+ 1 - 1
writer.go

@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"io"
 
-	"github.com/pierrec/lz4/internal/xxh32"
+	"github.com/pierrec/lz4/v2/internal/xxh32"
 )
 
 // Writer implements the LZ4 frame encoder.

+ 1 - 1
writer_test.go

@@ -8,7 +8,7 @@ import (
 	"reflect"
 	"testing"
 
-	"github.com/pierrec/lz4"
+	lz4 "github.com/pierrec/lz4/v2"
 )
 
 func TestWriter(t *testing.T) {