Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DatabaseLocation, _ = time.LoadLocation("UTC")
DatabaseLocation is local the timezone the database is set to default UTC
var TruncateOff = time.Microsecond
TruncateOff the degree of precision to REMOVE Default time.Microsecond
Functions ¶
Types ¶
type NullBool ¶
NullBool is a wrapper around bool
func (NullBool) MarshalJSON ¶
MarshalJSON method is called by json.Marshal, whenever it is of type NullBool
func (*NullBool) UnmarshalJSON ¶
UnmarshalJSON method is called by json.Unmarshal, whenever it is of type NullBool
type NullFloat64 ¶
NullFloat64 is a wrapper around float64
func Float64 ¶
func Float64(Float64 float64) NullFloat64
Float64 method to get NullFloat64 object from float64
func (NullFloat64) MarshalJSON ¶
func (nf NullFloat64) MarshalJSON() ([]byte, error)
MarshalJSON method is called by json.Marshal, whenever it is of type NullFloat64
func (*NullFloat64) Scan ¶
func (nf *NullFloat64) Scan(value interface{}) error
Scan satisfies the sql.scanner floaterface
func (*NullFloat64) UnmarshalJSON ¶
func (nf *NullFloat64) UnmarshalJSON(b []byte) error
UnmarshalJSON method is called by json.Unmarshal, whenever it is of type NullFloat64
type NullInt32 ¶
NullInt32 is a wrapper around int32
func (NullInt32) MarshalJSON ¶
MarshalJSON method is called by json.Marshal, whenever it is of type NullInt32
func (*NullInt32) UnmarshalJSON ¶
UnmarshalJSON method is called by json.Unmarshal, whenever it is of type NullInt32
type NullInt64 ¶
NullInt64 is a wrapper around int64
func (NullInt64) MarshalJSON ¶
MarshalJSON method is called by json.Marshal, whenever it is of type NullInt64
func (*NullInt64) UnmarshalJSON ¶
UnmarshalJSON method is called by json.Unmarshal, whenever it is of type NullInt64
type NullString ¶
NullString is a wrapper around string
func (NullString) MarshalJSON ¶
func (ns NullString) MarshalJSON() ([]byte, error)
MarshalJSON method is called by json.Marshal, whenever it is of type NullString
func (*NullString) Scan ¶
func (ns *NullString) Scan(value interface{}) error
Scan satisfies the sql.scanner interface
func (*NullString) UnmarshalJSON ¶
func (ns *NullString) UnmarshalJSON(b []byte) error
UnmarshalJSON method is called by json.Unmarshal, whenever it is of type NullString
type NullTime ¶
NullTime is a wrapper around time.Time
func (NullTime) MarshalJSON ¶
MarshalJSON method is called by json.Marshal, whenever it is of type NullTime
func (*NullTime) UnmarshalJSON ¶
UnmarshalJSON method is called by json.Unmarshal, whenever it is of type NullTime