Skip to content

Commit

Permalink
update : import go-util 包
Browse files Browse the repository at this point in the history
  • Loading branch information
xinliangnote committed Nov 9, 2019
1 parent a8cb381 commit 2f47791
Show file tree
Hide file tree
Showing 19 changed files with 32 additions and 21 deletions.
6 changes: 3 additions & 3 deletions app/controller/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions app/route/middleware/exception/exception.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions app/route/middleware/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion app/route/middleware/requestid/requestid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions app/route/middleware/sign/aes/aes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions app/route/middleware/sign/md5/md5.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions app/route/middleware/sign/rsa/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions app/util/error/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions app/util/grpc_log/grpc_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f47791

Please sign in to comment.