community: github.com/documize/community/core/timeutil Index | Files

package timeutil

import "github.com/documize/community/core/timeutil"

Package timeutil provides date and time related types and helpers.

Index

Package Files

nulltime.go

type NullTime Uses

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 Uses

func (nt *NullTime) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullTime) Value Uses

func (nt NullTime) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Package timeutil imports 2 packages (graph) and is imported by 1 packages. Updated 2017-11-01. Refresh now. Tools for package owners.