update : import go-util 包
This commit is contained in:
@@ -3,10 +3,10 @@ package test
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"go-gin-api/app/util/aes"
|
||||
"go-gin-api/app/util/md5"
|
||||
"github.com/xinliangnote/go-util/aes"
|
||||
"github.com/xinliangnote/go-util/md5"
|
||||
"github.com/xinliangnote/go-util/rsa"
|
||||
"go-gin-api/app/util/response"
|
||||
"go-gin-api/app/util/rsa"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ package exception
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/xinliangnote/go-util/mail"
|
||||
"github.com/xinliangnote/go-util/time"
|
||||
"go-gin-api/app/config"
|
||||
"go-gin-api/app/util/mail"
|
||||
"go-gin-api/app/util/response"
|
||||
"go-gin-api/app/util/time"
|
||||
"runtime/debug"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
jsonUtil "github.com/xinliangnote/go-util/json"
|
||||
"github.com/xinliangnote/go-util/time"
|
||||
"go-gin-api/app/config"
|
||||
jsonUtil "go-gin-api/app/util/json"
|
||||
"go-gin-api/app/util/response"
|
||||
"go-gin-api/app/util/time"
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
@@ -2,7 +2,7 @@ package requestid
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"go-gin-api/app/util/uuid"
|
||||
"github.com/xinliangnote/go-util/uuid"
|
||||
)
|
||||
|
||||
func SetUp() gin.HandlerFunc {
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/xinliangnote/go-util/aes"
|
||||
timeUtil "github.com/xinliangnote/go-util/time"
|
||||
"go-gin-api/app/config"
|
||||
"go-gin-api/app/util/aes"
|
||||
"go-gin-api/app/util/response"
|
||||
timeUtil "go-gin-api/app/util/time"
|
||||
"net/url"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/xinliangnote/go-util/md5"
|
||||
timeUtil "github.com/xinliangnote/go-util/time"
|
||||
"go-gin-api/app/config"
|
||||
"go-gin-api/app/util/md5"
|
||||
"go-gin-api/app/util/response"
|
||||
timeUtil "go-gin-api/app/util/time"
|
||||
"net/url"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/xinliangnote/go-util/rsa"
|
||||
timeUtil "github.com/xinliangnote/go-util/time"
|
||||
"go-gin-api/app/config"
|
||||
"go-gin-api/app/util/response"
|
||||
"go-gin-api/app/util/rsa"
|
||||
timeUtil "go-gin-api/app/util/time"
|
||||
"net/url"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
||||
@@ -2,11 +2,11 @@ package error
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/xinliangnote/go-util/json"
|
||||
"github.com/xinliangnote/go-util/mail"
|
||||
timeUtil "github.com/xinliangnote/go-util/time"
|
||||
"go-gin-api/app/config"
|
||||
"go-gin-api/app/route/middleware/exception"
|
||||
"go-gin-api/app/util/json"
|
||||
"go-gin-api/app/util/mail"
|
||||
timeUtil "go-gin-api/app/util/time"
|
||||
"log"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
|
||||
@@ -3,9 +3,9 @@ package grpc_log
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/xinliangnote/go-util/json"
|
||||
"github.com/xinliangnote/go-util/time"
|
||||
"go-gin-api/app/config"
|
||||
"go-gin-api/app/util/json"
|
||||
"go-gin-api/app/util/time"
|
||||
"google.golang.org/grpc"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
5
go.mod
5
go.mod
@@ -9,16 +9,17 @@ require (
|
||||
github.com/go-playground/locales v0.12.1 // indirect
|
||||
github.com/go-playground/universal-translator v0.16.0 // indirect
|
||||
github.com/golang/protobuf v1.3.2
|
||||
github.com/google/uuid v1.1.1
|
||||
github.com/google/uuid v1.1.1 // indirect
|
||||
github.com/grpc-ecosystem/go-grpc-middleware v1.1.0
|
||||
github.com/leodido/go-urn v1.1.0 // indirect
|
||||
github.com/opentracing/opentracing-go v1.1.0
|
||||
github.com/uber-go/atomic v1.4.0 // indirect
|
||||
github.com/uber/jaeger-client-go v2.18.1+incompatible
|
||||
github.com/uber/jaeger-lib v2.1.1+incompatible // indirect
|
||||
github.com/xinliangnote/go-util v0.0.0-20191109055458-c8d858c8d8b9
|
||||
golang.org/x/time v0.0.0-20190921001708-c4c64cad1fd0
|
||||
google.golang.org/grpc v1.23.1
|
||||
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
|
||||
gopkg.in/go-playground/validator.v9 v9.29.1
|
||||
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
|
||||
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df // indirect
|
||||
)
|
||||
|
||||
2
go.sum
2
go.sum
@@ -66,6 +66,8 @@ github.com/uber/jaeger-lib v2.1.1+incompatible h1:VY/6p2WopO09BPnw787RbaCIlfKbCR
|
||||
github.com/uber/jaeger-lib v2.1.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
|
||||
github.com/ugorji/go v1.1.4 h1:j4s+tAvLfL3bZyefP2SEWmhBzmuIlH/eqNuPdFPgngw=
|
||||
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
|
||||
github.com/xinliangnote/go-util v0.0.0-20191109055458-c8d858c8d8b9 h1:MoyZSQWPGWmLE8R5nIEUlxoxwaDYlz34Zh2K5QLgoKw=
|
||||
github.com/xinliangnote/go-util v0.0.0-20191109055458-c8d858c8d8b9/go.mod h1:3ZornrplU9tYj9ar9jchik1XPQ10ZbSXkbgxXR5PVaU=
|
||||
go.uber.org/atomic v1.4.0 h1:cxzIVoETapQEqDhQu3QfnvXAV4AlzcvUCxkVUFw3+EU=
|
||||
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
||||
|
||||
0
app/util/aes/aes.go → vendor/github.com/xinliangnote/go-util/aes/aes.go
generated
vendored
0
app/util/aes/aes.go → vendor/github.com/xinliangnote/go-util/aes/aes.go
generated
vendored
0
app/util/json/json.go → vendor/github.com/xinliangnote/go-util/json/json.go
generated
vendored
0
app/util/json/json.go → vendor/github.com/xinliangnote/go-util/json/json.go
generated
vendored
0
app/util/mail/mail.go → vendor/github.com/xinliangnote/go-util/mail/mail.go
generated
vendored
0
app/util/mail/mail.go → vendor/github.com/xinliangnote/go-util/mail/mail.go
generated
vendored
0
app/util/md5/md5.go → vendor/github.com/xinliangnote/go-util/md5/md5.go
generated
vendored
0
app/util/md5/md5.go → vendor/github.com/xinliangnote/go-util/md5/md5.go
generated
vendored
0
app/util/rsa/rsa.go → vendor/github.com/xinliangnote/go-util/rsa/rsa.go
generated
vendored
0
app/util/rsa/rsa.go → vendor/github.com/xinliangnote/go-util/rsa/rsa.go
generated
vendored
0
app/util/time/time.go → vendor/github.com/xinliangnote/go-util/time/time.go
generated
vendored
0
app/util/time/time.go → vendor/github.com/xinliangnote/go-util/time/time.go
generated
vendored
0
app/util/uuid/uuid.go → vendor/github.com/xinliangnote/go-util/uuid/uuid.go
generated
vendored
0
app/util/uuid/uuid.go → vendor/github.com/xinliangnote/go-util/uuid/uuid.go
generated
vendored
8
vendor/modules.txt
vendored
8
vendor/modules.txt
vendored
@@ -60,6 +60,14 @@ github.com/uber/jaeger-client-go/thrift-gen/baggage
|
||||
github.com/uber/jaeger-lib/metrics
|
||||
# github.com/ugorji/go v1.1.4
|
||||
github.com/ugorji/go/codec
|
||||
# github.com/xinliangnote/go-util v0.0.0-20191109055458-c8d858c8d8b9
|
||||
github.com/xinliangnote/go-util/aes
|
||||
github.com/xinliangnote/go-util/md5
|
||||
github.com/xinliangnote/go-util/rsa
|
||||
github.com/xinliangnote/go-util/mail
|
||||
github.com/xinliangnote/go-util/time
|
||||
github.com/xinliangnote/go-util/json
|
||||
github.com/xinliangnote/go-util/uuid
|
||||
# golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c
|
||||
golang.org/x/net/trace
|
||||
golang.org/x/net/internal/timeseries
|
||||
|
||||
Reference in New Issue
Block a user