2
0

Fix pgtype.Inet.AssignTo assigning reference

AssignTo should always assign copy.
Added documentation for AssignTo interface.
This commit is contained in:
Jack Christensen
2017-04-04 21:13:00 -05:00
parent e5c48b17f2
commit 52b58b88a6
2 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -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
}