Browse Source

openutil062

wecisecode 2 weeks ago
parent
commit
ced2b094bf

+ 1 - 1
_cgosqlite/main.go

@@ -5,7 +5,7 @@ import (
 	"os"
 
 	"git.wecise.com/wecise/mlab/gosqlite/sqlite"
-	"github.com/wecisecode/util/cast"
+	"gitee.com/wecisecode/util/cast"
 )
 
 func init() {

+ 1 - 1
_cgotest/cgomixmode/x/tx.go

@@ -11,7 +11,7 @@ import (
 	"os"
 	"unsafe"
 
-	"github.com/wecisecode/util/cast"
+	"gitee.com/wecisecode/util/cast"
 )
 
 // go 实现导出C99,在 .c 中使用

+ 1 - 1
_cgotest/main.go

@@ -4,7 +4,7 @@ import (
 	"log"
 
 	"git.wecise.com/wecise/cgotest/cgomixmode/x"
-	"github.com/wecisecode/util/cast"
+	"gitee.com/wecisecode/util/cast"
 )
 
 func main() {

+ 1 - 1
chat/api/api.go

@@ -8,7 +8,7 @@ import (
 	"io"
 	"net/http"
 
-	"github.com/wecisecode/util/merrs"
+	"gitee.com/wecisecode/util/merrs"
 )
 
 type GenerateRequestOptions struct {

+ 2 - 2
chat/chat.go

@@ -9,8 +9,8 @@ import (
 
 	"trial/chat/api"
 
-	"github.com/wecisecode/util/merrs"
-	"github.com/wecisecode/util/mfmt"
+	"gitee.com/wecisecode/util/merrs"
+	"gitee.com/wecisecode/util/mfmt"
 )
 
 type Chat struct {

+ 1 - 1
context/context_test.go

@@ -6,7 +6,7 @@ import (
 	"testing"
 	"time"
 
-	"github.com/wecisecode/util/logger"
+	"gitee.com/wecisecode/util/logger"
 )
 
 func TestContext(t *testing.T) {

+ 1 - 1
dfstest/dfstest.go

@@ -17,7 +17,7 @@ import (
 	"git.wecise.com/wecise/common/cassandra"
 	"git.wecise.com/wecise/common/dfs"
 	"git.wecise.com/wecise/common/etcd"
-	"github.com/wecisecode/util/logger"
+	"gitee.com/wecisecode/util/logger"
 	"gopkg.in/src-d/go-billy.v4"
 )
 

+ 3 - 2
go.mod

@@ -7,6 +7,7 @@ toolchain go1.24.0
 require (
 	git.wecise.com/wecise/common v0.0.0-20231009144505-e41004f1d3d5
 	git.wecise.com/wecise/mring v0.0.0-20250408084729-f8cc1c84851a
+	gitee.com/wecisecode/util v0.6.2
 	github.com/alphadose/haxmap v1.0.0
 	github.com/cornelk/hashmap v1.0.2
 	github.com/dave/stablegob v1.0.0
@@ -14,10 +15,8 @@ require (
 	github.com/google/uuid v1.6.0
 	github.com/issue9/assert v1.5.0
 	github.com/scylladb/go-set v1.0.3-0.20200225121959-cc7b2070d91e
-	github.com/spf13/cast v1.7.1
 	github.com/stretchr/testify v1.10.0
 	github.com/vmihailenco/msgpack/v5 v5.4.1
-	github.com/wecisecode/util v0.3.6
 	golang.org/x/sync v0.11.0
 	gopkg.in/src-d/go-billy.v4 v4.3.2
 	gopkg.in/yaml.v3 v3.0.1
@@ -118,6 +117,7 @@ require (
 	github.com/richardlehane/msoleps v1.0.1 // indirect
 	github.com/spacemonkeygo/errors v0.0.0-20201030155909-2f5f890dbc62 // indirect
 	github.com/spaolacci/murmur3 v1.1.0 // indirect
+	github.com/spf13/cast v1.7.1 // indirect
 	github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect
 	github.com/tidwall/btree v0.6.2-0.20211006233821-d66d463f216d // indirect
 	github.com/tidwall/match v1.0.3 // indirect
@@ -128,6 +128,7 @@ require (
 	github.com/tidwall/shardmap v0.0.0-20190927132224-c190691bd211 // indirect
 	github.com/tidwall/uhatools v0.4.1 // indirect
 	github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
+	github.com/wecisecode/util v0.3.6 // indirect
 	github.com/willf/bitset v1.1.10 // indirect
 	github.com/willf/bloom v2.0.3+incompatible // indirect
 	github.com/xtaci/smux v1.5.16 // indirect

+ 2 - 0
go.sum

@@ -15,6 +15,8 @@ git.wecise.com/wecise/sqlite v1.23.1 h1:SsTNLgEA/J94N7k3ieJWFc91j2ewu6G9EU4pOiWf
 git.wecise.com/wecise/sqlite v1.23.1/go.mod h1:Ae/T7KJu9Ks8+l94N/nglV2Vdr3bEaLXk6amum/O9Y0=
 git.wecise.com/wecise/util v0.0.0-20250407112005-21b67b95cf51 h1:gFRJrWhrOModNJGj5nh/p8safESwfkcxxTEAmQZz3T0=
 git.wecise.com/wecise/util v0.0.0-20250407112005-21b67b95cf51/go.mod h1:9Nisd3hYU7Mqe7vRggfbzCuF326mvvLnOw1AqK05AGY=
+gitee.com/wecisecode/util v0.6.2 h1:CYLtAbyyQjPoXhoS31r8wLnNi4opiSPTN/lc+rp6RI0=
+gitee.com/wecisecode/util v0.6.2/go.mod h1:da49ZLqcSfpA+zYJhhc67Xw0sKVw8dCaaZSTzzr513s=
 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
 github.com/EndFirstCorp/peekingReader v0.0.0-20171012052444-257fb6f1a1a6 h1:t27CGFMv8DwGwqRPEa2VNof5I/aZwO6q2gfJhN8q0U4=

+ 1 - 1
grpc-odbserver/main.go

@@ -9,7 +9,7 @@ import (
 
 	"git.wecise.com/wecise/common/matrix/util"
 	z "git.wecise.com/wecise/mring/z/m"
-	"github.com/wecisecode/util/logger"
+	"gitee.com/wecisecode/util/logger"
 )
 
 var _ = z.RunShadowCount(5, 0, 0, -1)

+ 1 - 1
hashmap/hashmap_test.go

@@ -7,7 +7,7 @@ import (
 
 	"github.com/alphadose/haxmap"
 	"github.com/cornelk/hashmap"
-	"github.com/wecisecode/util/cmap"
+	"gitee.com/wecisecode/util/cmap"
 )
 
 func BenchmarkGoMap(t *testing.B) {

+ 2 - 2
ping/ping.go

@@ -19,8 +19,8 @@ import (
 
 	"git.wecise.com/wecise/common/matrix/util"
 	"github.com/scylladb/go-set/strset"
-	"github.com/wecisecode/util/cfg"
-	"github.com/wecisecode/util/logger"
+	"gitee.com/wecisecode/util/cfg"
+	"gitee.com/wecisecode/util/logger"
 )
 
 type task struct {

+ 2 - 2
ping/probing/cfglog.go

@@ -1,8 +1,8 @@
 package probing
 
 import (
-	cfg "github.com/wecisecode/util/cfg"
-	log "github.com/wecisecode/util/logger"
+	cfg "gitee.com/wecisecode/util/cfg"
+	log "gitee.com/wecisecode/util/logger"
 )
 
 var mcfg = cfg.MConfig()

+ 1 - 1
ping/utils/utils.go

@@ -8,7 +8,7 @@ import (
 	"sync"
 	"time"
 
-	"github.com/wecisecode/util/logger"
+	"gitee.com/wecisecode/util/logger"
 )
 
 var (

+ 2 - 2
sqlite/sqlite_prof_test.go

@@ -16,8 +16,8 @@ import (
 	"time"
 
 	"git.wecise.com/wecise/common/matrix/util"
-	"github.com/wecisecode/util/cast"
-	"github.com/wecisecode/util/logger"
+	"gitee.com/wecisecode/util/cast"
+	"gitee.com/wecisecode/util/logger"
 	"modernc.org/sqlite"
 )
 

+ 1 - 1
sqlite/sqlite_test.go

@@ -12,7 +12,7 @@ import (
 	"testing"
 	"time"
 
-	"github.com/wecisecode/util/cast"
+	"gitee.com/wecisecode/util/cast"
 )
 
 func TestSQLiteBasic(t *testing.T) {