Merge branch 'master' into patch-1

This commit is contained in:
Bo-Yi Wu 2017-10-31 21:33:18 -05:00 committed by GitHub
commit f314122233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 13 deletions

View File

@ -74,10 +74,10 @@ BenchmarkTigerTonic_GithubAll | 1000 | 1439483 | 239104
BenchmarkTraffic_GithubAll | 100 | 11383067 | 2659329 | 21848 BenchmarkTraffic_GithubAll | 100 | 11383067 | 2659329 | 21848
BenchmarkVulcan_GithubAll | 5000 | 394253 | 19894 | 609 BenchmarkVulcan_GithubAll | 5000 | 394253 | 19894 | 609
(1): Total Repetitions achieved in constant time, higher means more confident result - (1): Total Repetitions achieved in constant time, higher means more confident result
(2): Single Repetition Duration (ns/op), lower is better - (2): Single Repetition Duration (ns/op), lower is better
(3): Heap Memory (B/op), lower is better - (3): Heap Memory (B/op), lower is better
(4): Average Allocations per Repetition (allocs/op), lower is better - (4): Average Allocations per Repetition (allocs/op), lower is better
## Gin v1. stable ## Gin v1. stable

View File

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

View File

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

View File

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

View File

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