Value implements the driver.Valuer interface.
()
| 54 | |
| 55 | // Value implements the driver.Valuer interface. |
| 56 | func (u NullUUID) Value() (driver.Value, error) { |
| 57 | if !u.Valid { |
| 58 | return nil, nil |
| 59 | } |
| 60 | // Delegate to UUID Value function |
| 61 | return u.UUID.Value() |
| 62 | } |
| 63 | |
| 64 | // Scan implements the sql.Scanner interface. |
| 65 | func (u *NullUUID) Scan(src interface{}) error { |