Rename module name

This commit is contained in:
Cruise Zhao
2020-04-18 23:21:25 +08:00
parent f8ab38d5a5
commit f644046f58
15 changed files with 18 additions and 18 deletions

2
cache/cache.go vendored
View File

@@ -3,7 +3,7 @@ package cache
import ( import (
"errors" "errors"
"github.com/creachadair/cityhash" "github.com/creachadair/cityhash"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"sync" "sync"
"time" "time"
) )

View File

@@ -3,7 +3,7 @@ package gfetcd
import ( import (
"context" "context"
"fmt" "fmt"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"os" "os"
"strings" "strings"
"time" "time"

View File

@@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/clientv3"
etcdnaming "github.com/coreos/etcd/clientv3/naming" etcdnaming "github.com/coreos/etcd/clientv3/naming"

2
go.mod
View File

@@ -1,4 +1,4 @@
module unitechdev/golib module gitlab.com/unitechdev/golib
go 1.14 go 1.14

View File

@@ -6,7 +6,7 @@ import (
"strings" "strings"
"sync" "sync"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"github.com/Shopify/sarama" "github.com/Shopify/sarama"
cluster "github.com/bsm/sarama-cluster" cluster "github.com/bsm/sarama-cluster"

View File

@@ -4,7 +4,7 @@ import (
"errors" "errors"
"github.com/creachadair/cityhash" "github.com/creachadair/cityhash"
"github.com/hashicorp/golang-lru" "github.com/hashicorp/golang-lru"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"time" "time"
) )

View File

@@ -2,7 +2,7 @@ package main
import ( import (
"fmt" "fmt"
"unitechdev/golib/metric" "gitlab.com/unitechdev/golib/metric"
) )
func main() { func main() {

View File

@@ -3,7 +3,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"unitechdev/golib/metric" "gitlab.com/unitechdev/golib/metric"
"time" "time"
) )

View File

@@ -11,7 +11,7 @@ import (
consulapi "github.com/hashicorp/consul/api" consulapi "github.com/hashicorp/consul/api"
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
) )
const ( const (

View File

@@ -2,9 +2,9 @@ package main
import ( import (
"flag" "flag"
"unitechdev/golib/metrics" "gitlab.com/unitechdev/golib/metrics"
"unitechdev/golib/metrics/prometheus" "gitlab.com/unitechdev/golib/metrics/prometheus"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"math/rand" "math/rand"
"os" "os"
"os/signal" "os/signal"

View File

@@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"net/http" "net/http"
"os" "os"
"strconv" "strconv"

View File

@@ -2,7 +2,7 @@ package prometheus
import ( import (
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"unitechdev/golib/metrics" "gitlab.com/unitechdev/golib/metrics"
) )
// Counter implements Counter, via a Prometheus CounterVec. // Counter implements Counter, via a Prometheus CounterVec.

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
stdprometheus "github.com/prometheus/client_golang/prometheus" stdprometheus "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"
"unitechdev/golib/metrics" "gitlab.com/unitechdev/golib/metrics"
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
"net/http" "net/http"

View File

@@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/clientv3"
"unitechdev/golib/qgrpc/ping" "gitlab.com/unitechdev/golib/qgrpc/ping"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/keepalive" "google.golang.org/grpc/keepalive"
"strings" "strings"

View File

@@ -3,7 +3,7 @@ package qgrpc
import ( import (
"context" "context"
"github.com/coreos/etcd/clientv3" "github.com/coreos/etcd/clientv3"
"unitechdev/golib/tlog" "gitlab.com/unitechdev/golib/tlog"
"path" "path"
"time" "time"
) )