Skip to content

Commit

Permalink
release v2
Browse files Browse the repository at this point in the history
  • Loading branch information
x1ah committed Jan 12, 2021
1 parent 1a270f4 commit ce1a7e2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ linters-settings:
gocyclo:
min-complexity: 15
goimports:
local-prefixes: github.com/xiachufang/pkg
local-prefixes: github.com/xiachufang/pkg/v2
golint:
min-confidence: 0
gomnd:
Expand Down
4 changes: 2 additions & 2 deletions examples/hacache/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/go-redis/redis/v8"
"github.com/smira/go-statsd"
"github.com/xiachufang/pkg/hacache"
"github.com/xiachufang/pkg/hacache/storage"
"github.com/xiachufang/pkg/v2/hacache"
"github.com/xiachufang/pkg/v2/hacache/storage"
)

// GenerateCacheKey generate cache key
Expand Down
2 changes: 1 addition & 1 deletion examples/limiter/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

"github.com/xiachufang/pkg/limiter"
"github.com/xiachufang/pkg/v2/limiter"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/logger/basic.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/xiachufang/pkg/logger"
"github.com/xiachufang/pkg/v2/logger"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/xiachufang/pkg
module github.com/xiachufang/pkg/v2

go 1.14

Expand Down
4 changes: 2 additions & 2 deletions hacache/hacache.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/vmihailenco/msgpack/v5"
"github.com/xiachufang/pkg/hacache/storage"
"github.com/xiachufang/pkg/limiter"
"github.com/xiachufang/pkg/v2/hacache/storage"
"github.com/xiachufang/pkg/v2/limiter"
"go.uber.org/zap"
)

Expand Down

0 comments on commit ce1a7e2

Please sign in to comment.