diff --git a/cache/cache.go b/cache/cache.go index 5dc971d..b5d2db1 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -3,7 +3,7 @@ package cache import ( "errors" "github.com/creachadair/cityhash" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/tlog" "sync" "time" ) diff --git a/gfetcd/client.go b/gfetcd/client.go index 9dcd698..f72c9ab 100644 --- a/gfetcd/client.go +++ b/gfetcd/client.go @@ -3,7 +3,7 @@ package gfetcd import ( "context" "fmt" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/tlog" "os" "strings" "time" diff --git a/gfetcd/server.go b/gfetcd/server.go index e8bbf16..09ec09f 100644 --- a/gfetcd/server.go +++ b/gfetcd/server.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/tlog" "github.com/coreos/etcd/clientv3" etcdnaming "github.com/coreos/etcd/clientv3/naming" diff --git a/go.mod b/go.mod index f5c000c..8f88caa 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module unitechdev/golib +module gitlab.com/unitechdev/golib go 1.14 diff --git a/kafka/kafka.go b/kafka/kafka.go index ff56f61..5137eaf 100644 --- a/kafka/kafka.go +++ b/kafka/kafka.go @@ -6,7 +6,7 @@ import ( "strings" "sync" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/tlog" "github.com/Shopify/sarama" cluster "github.com/bsm/sarama-cluster" diff --git a/lrucache/lrucache.go b/lrucache/lrucache.go index 31aa14f..952971c 100644 --- a/lrucache/lrucache.go +++ b/lrucache/lrucache.go @@ -4,7 +4,7 @@ import ( "errors" "github.com/creachadair/cityhash" "github.com/hashicorp/golang-lru" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/tlog" "time" ) diff --git a/metric/examples/exporter_demo.go b/metric/examples/exporter_demo.go index ca9a8a4..a3d178c 100644 --- a/metric/examples/exporter_demo.go +++ b/metric/examples/exporter_demo.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "unitechdev/golib/metric" + "gitlab.com/unitechdev/golib/metric" ) func main() { diff --git a/metric/examples/main.go b/metric/examples/main.go index e4e09d2..b974dce 100644 --- a/metric/examples/main.go +++ b/metric/examples/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" "github.com/prometheus/client_golang/prometheus" - "unitechdev/golib/metric" + "gitlab.com/unitechdev/golib/metric" "time" ) diff --git a/metric/exporter.go b/metric/exporter.go index f5b7bf0..604d7a4 100644 --- a/metric/exporter.go +++ b/metric/exporter.go @@ -11,7 +11,7 @@ import ( consulapi "github.com/hashicorp/consul/api" "github.com/prometheus/client_golang/prometheus/promhttp" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/tlog" ) const ( diff --git a/metrics/example1/example1.go b/metrics/example1/example1.go index 43a3691..7d57f1c 100644 --- a/metrics/example1/example1.go +++ b/metrics/example1/example1.go @@ -2,9 +2,9 @@ package main import ( "flag" - "unitechdev/golib/metrics" - "unitechdev/golib/metrics/prometheus" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/metrics" + "gitlab.com/unitechdev/golib/metrics/prometheus" + "gitlab.com/unitechdev/golib/tlog" "math/rand" "os" "os/signal" diff --git a/metrics/metrics.go b/metrics/metrics.go index 6133d4e..1677fb1 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -4,7 +4,7 @@ import ( "encoding/json" "errors" "fmt" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/tlog" "net/http" "os" "strconv" diff --git a/metrics/prometheus/prometheus.go b/metrics/prometheus/prometheus.go index e771745..559a2f5 100644 --- a/metrics/prometheus/prometheus.go +++ b/metrics/prometheus/prometheus.go @@ -2,7 +2,7 @@ package prometheus import ( "github.com/prometheus/client_golang/prometheus" - "unitechdev/golib/metrics" + "gitlab.com/unitechdev/golib/metrics" ) // Counter implements Counter, via a Prometheus CounterVec. diff --git a/metrics/prometheus/prometheus_test.go b/metrics/prometheus/prometheus_test.go index 7a3514b..011fee4 100644 --- a/metrics/prometheus/prometheus_test.go +++ b/metrics/prometheus/prometheus_test.go @@ -4,7 +4,7 @@ import ( "fmt" stdprometheus "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" - "unitechdev/golib/metrics" + "gitlab.com/unitechdev/golib/metrics" "io/ioutil" "math/rand" "net/http" diff --git a/qgrpc/op.go b/qgrpc/op.go index 9e708b1..6e9dfea 100644 --- a/qgrpc/op.go +++ b/qgrpc/op.go @@ -4,8 +4,8 @@ import ( "context" "fmt" "github.com/coreos/etcd/clientv3" - "unitechdev/golib/qgrpc/ping" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/qgrpc/ping" + "gitlab.com/unitechdev/golib/tlog" "google.golang.org/grpc" "google.golang.org/grpc/keepalive" "strings" diff --git a/qgrpc/register.go b/qgrpc/register.go index 57d6148..fe4733e 100644 --- a/qgrpc/register.go +++ b/qgrpc/register.go @@ -3,7 +3,7 @@ package qgrpc import ( "context" "github.com/coreos/etcd/clientv3" - "unitechdev/golib/tlog" + "gitlab.com/unitechdev/golib/tlog" "path" "time" )