mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix(json): check for custom marshaler for ptr type
This commit is contained in:
parent
09177a69ac
commit
f762b3e637
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,9 @@ func appendArray(v reflect.Value, buf []byte) []byte {
|
|||
}
|
||||
|
||||
func appendPtrInterface(v reflect.Value, buf []byte) []byte {
|
||||
if res, ok := appendWithCustomMarshaler(v, buf); ok {
|
||||
return res
|
||||
}
|
||||
return appendMarshal(v.Elem(), buf)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue