Merge branch 'develop' into performance

Conflicts:
	context.go
	context_test.go
	gin_test.go
	recovery_test.go
	utils.go
This commit is contained in:
Manu Mtz-Almeida
2015-04-08 13:37:25 +02:00
18 changed files with 971 additions and 102 deletions

View File

@ -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")
}
}