mirror of
https://github.com/labstack/echo.git
synced 2025-07-15 01:34:53 +02:00
committed by
Vishal Rana
parent
90d675fa2a
commit
f49d166e6f
2
bind.go
2
bind.go
@ -80,7 +80,7 @@ func (b *DefaultBinder) bindData(ptr interface{}, data map[string][]string, tag
|
||||
val := reflect.ValueOf(ptr).Elem()
|
||||
|
||||
if typ.Kind() != reflect.Struct {
|
||||
return errors.New("Binding element must be a struct")
|
||||
return errors.New("binding element must be a struct")
|
||||
}
|
||||
|
||||
for i := 0; i < typ.NumField(); i++ {
|
||||
|
Reference in New Issue
Block a user