Skip to content

Commit c3f9f63

Browse files
author
Rocco Ciccone
committed
feat: replaced deprecated method
1 parent d8f7ec9 commit c3f9f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

copier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func copier(toValue interface{}, fromValue interface{}, opt Option) (err error)
206206
to.SetMapIndex(toKey, toValue)
207207
break
208208
}
209-
elemType = reflect.PtrTo(elemType)
209+
elemType = reflect.PointerTo(elemType)
210210
toValue = toValue.Addr()
211211
}
212212
}

0 commit comments

Comments
 (0)