소스 검색

style(import): not use aliase when import package (#1146)

田欧 8 년 전
부모
커밋
b7e8a6b9b0
4개의 변경된 파일4개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 1
      binding/binding.go
  2. 1 3
      binding/json.go
  3. 1 3
      binding/query.go
  4. 1 2
      binding/validate_test.go

+ 1 - 1
binding/binding.go

@@ -7,7 +7,7 @@ package binding
 import (
 	"net/http"
 
-	validator "gopkg.in/go-playground/validator.v8"
+	"gopkg.in/go-playground/validator.v8"
 )
 
 const (

+ 1 - 3
binding/json.go

@@ -10,9 +10,7 @@ import (
 	"github.com/gin-gonic/gin/json"
 )
 
-var (
-	EnableDecoderUseNumber = false
-)
+var EnableDecoderUseNumber = false
 
 type jsonBinding struct{}
 

+ 1 - 3
binding/query.go

@@ -4,9 +4,7 @@
 
 package binding
 
-import (
-	"net/http"
-)
+import "net/http"
 
 type queryBinding struct{}
 

+ 1 - 2
binding/validate_test.go

@@ -10,9 +10,8 @@ import (
 	"testing"
 	"time"
 
-	validator "gopkg.in/go-playground/validator.v8"
-
 	"github.com/stretchr/testify/assert"
+	"gopkg.in/go-playground/validator.v8"
 )
 
 type testInterface interface {