We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bded20 commit f4f3f0eCopy full SHA for f4f3f0e
handler.go
@@ -62,7 +62,7 @@ func (e *respError) Error() string {
62
return e.Message
63
}
64
65
-var marsharableRT = reflect.TypeOf(new(marshalable)).Elem()
+var marshalableRT = reflect.TypeOf(new(marshalable)).Elem()
66
67
func (e *respError) val(errors *Errors) reflect.Value {
68
if errors != nil {
@@ -74,7 +74,7 @@ func (e *respError) val(errors *Errors) reflect.Value {
74
} else {
75
v = reflect.New(t)
76
77
- if len(e.Meta) > 0 && v.Type().Implements(marsharableRT) {
+ if len(e.Meta) > 0 && v.Type().Implements(marshalableRT) {
78
_ = v.Interface().(marshalable).UnmarshalJSON(e.Meta)
79
80
if t.Kind() != reflect.Ptr {
0 commit comments