mirror of
https://github.com/google/uuid.git
synced 2025-11-06 08:59:16 +02:00
Value() is on UUID, not *UUID.
This commit is contained in:
2
sql.go
2
sql.go
@@ -61,6 +61,6 @@ func (uuid *UUID) Scan(src interface{}) error {
|
|||||||
// Value implements sql.Valuer so that UUIDs can be written to databases
|
// Value implements sql.Valuer so that UUIDs can be written to databases
|
||||||
// transparently. Currently, UUIDs map map to strings. Please consult
|
// transparently. Currently, UUIDs map map to strings. Please consult
|
||||||
// database-specific driver documentation for matching types.
|
// database-specific driver documentation for matching types.
|
||||||
func (uuid *UUID) Value() (driver.Value, error) {
|
func (uuid UUID) Value() (driver.Value, error) {
|
||||||
return uuid.String(), nil
|
return uuid.String(), nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user