Use pointer methods for all struct pgtypes
Now no need to no whether certain interfaces are implemented by struct or pointer to struct.
This commit is contained in:
+2
-2
@@ -39,6 +39,6 @@ func (dst *Unknown) Scan(src interface{}) error {
|
||||
}
|
||||
|
||||
// Value implements the database/sql/driver Valuer interface.
|
||||
func (src Unknown) Value() (driver.Value, error) {
|
||||
return (Text)(src).Value()
|
||||
func (src *Unknown) Value() (driver.Value, error) {
|
||||
return (*Text)(src).Value()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user