Skip to content

Commit 4635b6a

Browse files
committed
Fixed go module import path
1 parent 5c06575 commit 4635b6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+100
-100
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,29 @@ Here is what it brings in detail:
4343
To begin working with the latest version of gocache, you can import the library in your project:
4444

4545
```go
46-
go get github.com/eko/gocache/v4/lib
46+
go get github.com/eko/gocache/lib/v4
4747
```
4848

4949
and then, import the store(s) you want to use between all available ones:
5050

5151
```go
52-
go get github.com/eko/gocache/v4/store/bigcache
53-
go get github.com/eko/gocache/v4/store/freecache
54-
go get github.com/eko/gocache/v4/store/go_cache
55-
go get github.com/eko/gocache/v4/store/memcache
56-
go get github.com/eko/gocache/v4/store/pegasus
57-
go get github.com/eko/gocache/v4/store/redis
58-
go get github.com/eko/gocache/v4/store/rediscluster
59-
go get github.com/eko/gocache/v4/store/rueidis
60-
go get github.com/eko/gocache/v4/store/ristretto
52+
go get github.com/eko/gocache/store/bigcache/v4
53+
go get github.com/eko/gocache/store/freecache/v4
54+
go get github.com/eko/gocache/store/go_cache/v4
55+
go get github.com/eko/gocache/store/memcache/v4
56+
go get github.com/eko/gocache/store/pegasus/v4
57+
go get github.com/eko/gocache/store/redis/v4
58+
go get github.com/eko/gocache/store/rediscluster/v4
59+
go get github.com/eko/gocache/store/rueidis/v4
60+
go get github.com/eko/gocache/store/ristretto/v4
6161
```
6262

6363
Then, simply use the following import statements:
6464

6565
```go
6666
import (
67-
"github.com/eko/gocache/v4/lib/cache"
68-
"github.com/eko/gocache/v4/store/redis"
67+
"github.com/eko/gocache/lib/v4/cache"
68+
"github.com/eko/gocache/store/redis/v4"
6969
)
7070
```
7171

@@ -387,9 +387,9 @@ package main
387387

388388
import (
389389
"log"
390-
"github.com/eko/gocache/v4/lib/generic"
391-
"github.com/eko/gocache/v4/lib/cache"
392-
"github.com/eko/gocache/v4/lib/store"
390+
"github.com/eko/gocache/lib/v4/generic"
391+
"github.com/eko/gocache/lib/v4/cache"
392+
"github.com/eko/gocache/lib/v4/store"
393393
)
394394

395395
func main() {

lib/cache/cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"reflect"
88
"time"
99

10-
"github.com/eko/gocache/v4/lib/codec"
11-
"github.com/eko/gocache/v4/lib/store"
10+
"github.com/eko/gocache/lib/v4/codec"
11+
"github.com/eko/gocache/lib/v4/store"
1212
)
1313

1414
const (

lib/cache/cache_mock.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/cache/cache_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/eko/gocache/v4/lib/codec"
10-
"github.com/eko/gocache/v4/lib/store"
9+
"github.com/eko/gocache/lib/v4/codec"
10+
"github.com/eko/gocache/lib/v4/store"
1111
"github.com/golang/mock/gomock"
1212
"github.com/stretchr/testify/assert"
1313
)

lib/cache/chain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"time"
88

9-
"github.com/eko/gocache/v4/lib/store"
9+
"github.com/eko/gocache/lib/v4/store"
1010
)
1111

1212
const (

lib/cache/chain_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/eko/gocache/v4/lib/codec"
11-
"github.com/eko/gocache/v4/lib/store"
10+
"github.com/eko/gocache/lib/v4/codec"
11+
"github.com/eko/gocache/lib/v4/store"
1212
"github.com/golang/mock/gomock"
1313
"github.com/stretchr/testify/assert"
1414
)

lib/cache/interface.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"time"
66

7-
"github.com/eko/gocache/v4/lib/codec"
8-
"github.com/eko/gocache/v4/lib/store"
7+
"github.com/eko/gocache/lib/v4/codec"
8+
"github.com/eko/gocache/lib/v4/store"
99
)
1010

1111
// CacheInterface represents the interface for all caches (aggregates, metric, memory, redis, ...)

lib/cache/loadable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"sync"
66

7-
"github.com/eko/gocache/v4/lib/store"
7+
"github.com/eko/gocache/lib/v4/store"
88
)
99

1010
const (

lib/cache/metric.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package cache
33
import (
44
"context"
55

6-
"github.com/eko/gocache/v4/lib/metrics"
7-
"github.com/eko/gocache/v4/lib/store"
6+
"github.com/eko/gocache/lib/v4/metrics"
7+
"github.com/eko/gocache/lib/v4/store"
88
)
99

1010
const (

lib/cache/metric_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/eko/gocache/v4/lib/codec"
10-
"github.com/eko/gocache/v4/lib/metrics"
11-
"github.com/eko/gocache/v4/lib/store"
9+
"github.com/eko/gocache/lib/v4/codec"
10+
"github.com/eko/gocache/lib/v4/metrics"
11+
"github.com/eko/gocache/lib/v4/store"
1212
"github.com/golang/mock/gomock"
1313
"github.com/stretchr/testify/assert"
1414
)

0 commit comments

Comments
 (0)