Merge branch 'develop' into performance
Conflicts: context.go context_test.go gin_test.go recovery_test.go utils.go
This commit is contained in:
@ -6,7 +6,6 @@ package binding
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"log"
|
||||
"reflect"
|
||||
"strconv"
|
||||
)
|
||||
@ -135,6 +134,6 @@ func setFloatField(val string, bitSize int, field reflect.Value) error {
|
||||
// https://github.com/codegangsta/martini-contrib/pull/34#issuecomment-29683659
|
||||
func ensureNotPointer(obj interface{}) {
|
||||
if reflect.TypeOf(obj).Kind() == reflect.Ptr {
|
||||
log.Panic("Pointers are not accepted as binding models")
|
||||
panic("Pointers are not accepted as binding models")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user