Scan implements the Scanner interface.
(value interface{})
| 1386 | |
| 1387 | // Scan implements the Scanner interface. |
| 1388 | func (ns *NullChatMessageVisibility) Scan(value interface{}) error { |
| 1389 | if value == nil { |
| 1390 | ns.ChatMessageVisibility, ns.Valid = "", false |
| 1391 | return nil |
| 1392 | } |
| 1393 | ns.Valid = true |
| 1394 | return ns.ChatMessageVisibility.Scan(value) |
| 1395 | } |
| 1396 | |
| 1397 | // Value implements the driver Valuer interface. |
| 1398 | func (ns NullChatMessageVisibility) Value() (driver.Value, error) { |