Value implements sql.Valuer so that UUIDs can be written to databases transparently. Currently, UUIDs map to strings. Please consult database-specific driver documentation for matching types.
()
| 55 | // transparently. Currently, UUIDs map to strings. Please consult |
| 56 | // database-specific driver documentation for matching types. |
| 57 | func (uuid UUID) Value() (driver.Value, error) { |
| 58 | return uuid.String(), nil |
| 59 | } |