Documentation ¶ Overview ¶ Package timeutil provides date and time related types and helpers. Index ¶ type NullTime func (nt *NullTime) Scan(value interface{}) error func (nt NullTime) Value() (driver.Value, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type NullTime ¶ type NullTime struct { Time time.Time Valid bool // Valid is true if Time is not NULL } NullTime represents a time.Time that may be null. NullTime implements the sql.Scanner interface so it can be used as a scan destination, similar to sql.NullString. func (*NullTime) Scan ¶ func (nt *NullTime) Scan(value interface{}) error Scan implements the Scanner interface. func (NullTime) Value ¶ func (nt NullTime) Value() (driver.Value, error) Value implements the driver Valuer interface. Source Files ¶ View all Source files nulltime.go Click to show internal directories. Click to hide internal directories.