Documentation ¶ Overview ¶ Implementation has been copied from https://git.io/fh78u Index ¶ func OpenDB() (*sql.DB, error) 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 ¶ func OpenDB ¶ func OpenDB() (*sql.DB, error) OpenDB opens database and, if successful, returns a reference to it. 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 data.go null_time.go Directories ¶ Show internal Expand all Path Synopsis games Click to show internal directories. Click to hide internal directories.