Bugfix for unmarshalling pointers
This commit is contained in:
parent
f4c84c435f
commit
d4b442c25d
|
@ -560,10 +560,11 @@ func unmarshal(e interface{}, in []byte) (n int, err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
return unmarshal(e, in)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return unmarshal(e, in)
|
return unmarshal(p, in)
|
||||||
}
|
}
|
||||||
|
|
||||||
func RegisterDecoder(name string, f func(e interface{}, in []byte) (n int, err error)) {
|
func RegisterDecoder(name string, f func(e interface{}, in []byte) (n int, err error)) {
|
||||||
|
|
Loading…
Reference in New Issue