lz4: add vgo support
@@ -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:
@@ -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
@@ -6,7 +6,7 @@ import (
"io/ioutil"
"testing"
- "github.com/pierrec/lz4"
+ lz4 "github.com/pierrec/lz4/v2"
)
func BenchmarkCompress(b *testing.B) {
@@ -8,7 +8,7 @@ import (
"reflect"
type testcase struct {
@@ -4,7 +4,7 @@ import (
"bytes"
// lz4.Reader fuzz function
@@ -0,0 +1,3 @@
+module github.com/pierrec/lz4/v2
+require github.com/pkg/profile v1.2.1
@@ -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=
"hash/fnv"
- "github.com/pierrec/lz4/internal/xxh32"
+ "github.com/pierrec/lz4/v2/internal/xxh32"
type test struct {
@@ -13,7 +13,7 @@ import (
"runtime"
"strings"
"github.com/pkg/profile"
"io"
// Reader implements the LZ4 frame decoder.
@@ -9,7 +9,7 @@ import (
func TestReader(t *testing.T) {
@@ -5,7 +5,7 @@ import (
"fmt"
// Writer implements the LZ4 frame encoder.
func TestWriter(t *testing.T) {