Fix deprecated reflect.PtrTo calls
This commit is contained in:
@@ -72,7 +72,7 @@ func _getEncoder(typ reflect.Type) encoderFunc {
|
||||
|
||||
// Addressable struct field value.
|
||||
if kind != reflect.Ptr {
|
||||
ptr := reflect.PtrTo(typ)
|
||||
ptr := reflect.PointerTo(typ)
|
||||
if ptr.Implements(customEncoderType) {
|
||||
return encodeCustomValuePtr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user