update package reference

This commit is contained in:
kevin
2020-08-08 16:40:10 +08:00
parent d19d25c72f
commit 0a7e0cce77
377 changed files with 881 additions and 1423 deletions

View File

@@ -6,9 +6,9 @@ import (
"strings"
"time"
"zero/core/executors"
"zero/core/logx"
"zero/core/stringx"
"github.com/tal-tech/go-zero/core/executors"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/stringx"
)
const (

View File

@@ -5,10 +5,9 @@ import (
"strconv"
"testing"
"zero/core/logx"
"github.com/DATA-DOG/go-sqlmock"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/logx"
)
type mockedConn struct {

View File

@@ -3,12 +3,11 @@ package sqlx
import (
"testing"
"zero/core/breaker"
"zero/core/logx"
"zero/core/stat"
"github.com/go-sql-driver/mysql"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/breaker"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/stat"
)
func init() {

View File

@@ -5,7 +5,7 @@ import (
"reflect"
"strings"
"zero/core/mapping"
"github.com/tal-tech/go-zero/core/mapping"
)
const tagName = "db"

View File

@@ -4,10 +4,9 @@ import (
"database/sql"
"testing"
"zero/core/logx"
"github.com/DATA-DOG/go-sqlmock"
"github.com/stretchr/testify/assert"
"github.com/tal-tech/go-zero/core/logx"
)
func TestUnmarshalRowBool(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package sqlx
import (
"database/sql"
"zero/core/breaker"
"github.com/tal-tech/go-zero/core/breaker"
)
var ErrNotFound = sql.ErrNoRows

View File

@@ -6,7 +6,7 @@ import (
"sync"
"time"
"zero/core/syncx"
"github.com/tal-tech/go-zero/core/syncx"
)
const (

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"time"
"zero/core/logx"
"zero/core/timex"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/timex"
)
const slowThreshold = time.Millisecond * 500

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
"zero/core/logx"
"zero/core/mapping"
"github.com/tal-tech/go-zero/core/logx"
"github.com/tal-tech/go-zero/core/mapping"
)
func desensitize(datasource string) string {