Skip to content

Commit

Permalink
update package reference
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Aug 8, 2020
1 parent d19d25c commit 0a7e0cc
Show file tree
Hide file tree
Showing 377 changed files with 881 additions and 1,423 deletions.
4 changes: 2 additions & 2 deletions core/bloom/bloom.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"strconv"

"zero/core/hash"
"zero/core/stores/redis"
"github.com/tal-tech/go-zero/core/hash"
"github.com/tal-tech/go-zero/core/stores/redis"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions core/bloom/bloom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package bloom
import (
"testing"

"zero/core/stores/redis"

"github.com/alicebob/miniredis"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/stores/redis"
)

func TestRedisBitSet_New_Set_Test(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions core/breaker/breaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"sync"
"time"

"zero/core/mathx"
"zero/core/proc"
"zero/core/stat"
"zero/core/stringx"
"github.com/tal-tech/go-zero/core/mathx"
"github.com/tal-tech/go-zero/core/proc"
"github.com/tal-tech/go-zero/core/stat"
"github.com/tal-tech/go-zero/core/stringx"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions core/breaker/breaker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import (
"strconv"
"testing"

"zero/core/stat"

"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/stat"
)

func init() {
Expand Down
3 changes: 1 addition & 2 deletions core/breaker/breakers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import (
"fmt"
"testing"

"zero/core/stat"

"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/stat"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions core/breaker/googlebreaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"sync/atomic"
"time"

"zero/core/collection"
"zero/core/mathx"
"github.com/tal-tech/go-zero/core/collection"
"github.com/tal-tech/go-zero/core/mathx"
)

const (
Expand Down
7 changes: 3 additions & 4 deletions core/breaker/googlebreaker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import (
"testing"
"time"

"zero/core/collection"
"zero/core/mathx"
"zero/core/stat"

"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/collection"
"github.com/tal-tech/go-zero/core/mathx"
"github.com/tal-tech/go-zero/core/stat"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion core/codec/aesecb.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/base64"
"errors"

"zero/core/logx"
"github.com/tal-tech/go-zero/core/logx"
)

var ErrPaddingSize = errors.New("padding size error")
Expand Down
6 changes: 3 additions & 3 deletions core/collection/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"sync/atomic"
"time"

"zero/core/logx"
"zero/core/mathx"
"zero/core/syncx"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/mathx"
"github.com/tal-tech/go-zero/core/syncx"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion core/collection/rollingwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sync"
"time"

"zero/core/timex"
"github.com/tal-tech/go-zero/core/timex"
)

type (
Expand Down
3 changes: 1 addition & 2 deletions core/collection/rollingwindow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import (
"testing"
"time"

"zero/core/stringx"

"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/stringx"
)

const duration = time.Millisecond * 50
Expand Down
3 changes: 1 addition & 2 deletions core/collection/safemap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ package collection
import (
"testing"

"zero/core/stringx"

"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/stringx"
)

func TestSafeMap(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions core/collection/set.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package collection

import (
"zero/core/lang"
"zero/core/logx"
"github.com/tal-tech/go-zero/core/lang"
"github.com/tal-tech/go-zero/core/logx"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions core/collection/timingwheel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"time"

"zero/core/lang"
"zero/core/threading"
"zero/core/timex"
"github.com/tal-tech/go-zero/core/lang"
"github.com/tal-tech/go-zero/core/threading"
"github.com/tal-tech/go-zero/core/timex"
)

const drainWorkers = 8
Expand Down
9 changes: 4 additions & 5 deletions core/collection/timingwheel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ import (
"testing"
"time"

"zero/core/lang"
"zero/core/stringx"
"zero/core/syncx"
"zero/core/timex"

"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/lang"
"github.com/tal-tech/go-zero/core/stringx"
"github.com/tal-tech/go-zero/core/syncx"
"github.com/tal-tech/go-zero/core/timex"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion core/conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"path"

"zero/core/mapping"
"github.com/tal-tech/go-zero/core/mapping"
)

var loaders = map[string]func([]byte, interface{}) error{
Expand Down
2 changes: 1 addition & 1 deletion core/conf/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"sync"

"zero/core/iox"
"github.com/tal-tech/go-zero/core/iox"
)

// PropertyError represents a configuration error message.
Expand Down
3 changes: 1 addition & 2 deletions core/conf/properties_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"os"
"testing"

"zero/core/fs"

"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/fs"
)

func TestProperties(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion core/contextx/unmarshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package contextx
import (
"context"

"zero/core/mapping"
"github.com/tal-tech/go-zero/core/mapping"
)

const contextTagKey = "ctx"
Expand Down
2 changes: 1 addition & 1 deletion core/discov/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"zero/core/discov/internal"
"github.com/tal-tech/go-zero/core/discov/internal"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions core/discov/clients_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"sync"
"testing"

"zero/core/discov/internal"

"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/discov/internal"
)

var mockLock sync.Mutex
Expand Down
4 changes: 2 additions & 2 deletions core/discov/facade.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package discov

import (
"zero/core/discov/internal"
"zero/core/lang"
"github.com/tal-tech/go-zero/core/discov/internal"
"github.com/tal-tech/go-zero/core/lang"
)

type (
Expand Down
11 changes: 5 additions & 6 deletions core/discov/internal/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ import (
"sync"
"time"

"zero/core/contextx"
"zero/core/lang"
"zero/core/logx"
"zero/core/syncx"
"zero/core/threading"

"github.com/tal-tech/go-zero/core/contextx"
"github.com/tal-tech/go-zero/core/lang"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/syncx"
"github.com/tal-tech/go-zero/core/threading"
"go.etcd.io/etcd/clientv3"
)

Expand Down
5 changes: 2 additions & 3 deletions core/discov/internal/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import (
"sync"
"testing"

"zero/core/contextx"
"zero/core/stringx"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/contextx"
"github.com/tal-tech/go-zero/core/stringx"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/mvcc/mvccpb"
)
Expand Down
4 changes: 0 additions & 4 deletions core/discov/kubernetes/discov-namespace.yaml

This file was deleted.

Loading

0 comments on commit 0a7e0cc

Please sign in to comment.