Value implements the driver.Valuer interface.
()
| 59 | |
| 60 | // Value implements the driver.Valuer interface. |
| 61 | func (u NullUUID) Value() (driver.Value, error) { |
| 62 | if !u.Valid { |
| 63 | return nil, nil |
| 64 | } |
| 65 | // Delegate to UUID Value function |
| 66 | return u.UUID.Value() |
| 67 | } |
| 68 | |
| 69 | // Scan implements the sql.Scanner interface. |
| 70 | func (u *NullUUID) Scan(src interface{}) error { |