Fix pgtype.Inet.AssignTo assigning reference
AssignTo should always assign copy. Added documentation for AssignTo interface.
This commit is contained in:
+2
-1
@@ -89,7 +89,8 @@ type Value interface {
|
||||
// possible, then Get() returns Value.
|
||||
Get() interface{}
|
||||
|
||||
// AssignTo converts and assigns the Value to dst.
|
||||
// AssignTo converts and assigns the Value to dst. It MUST make a deep copy of
|
||||
// any reference types.
|
||||
AssignTo(dst interface{}) error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user