Documentation ¶
Index ¶
- type Bool
- type Date
- func (d Date) Equal(other Date) bool
- func (d Date) Is(other time.Time) bool
- func (d Date) IsAfter(other time.Time) bool
- func (d Date) IsBefore(other time.Time) bool
- func (d Date) IsNullOrZero() bool
- func (d *Date) MarshalJSON() ([]byte, error)
- func (d *Date) Scan(value interface{}) error
- func (d *Date) UnmarshalJSON(b []byte) error
- func (d Date) Value() (driver.Value, error)
- type Float64
- func (f Float64) Equal(other Float64) bool
- func (f Float64) Is(other float64) bool
- func (f Float64) IsNullOrZero() bool
- func (f *Float64) MarshalJSON() ([]byte, error)
- func (f *Float64) Scan(value interface{}) error
- func (f *Float64) UnmarshalJSON(b []byte) error
- func (f Float64) Value() (driver.Value, error)
- type Int64
- type String
- func (s String) Equal(other String) bool
- func (s String) Is(other string) bool
- func (s String) IsNullOrZero() bool
- func (s *String) MarshalJSON() ([]byte, error)
- func (s *String) Scan(value interface{}) error
- func (s *String) UnmarshalJSON(b []byte) error
- func (s String) Value() (driver.Value, error)
- type Time
- func (t Time) Equal(other Time) bool
- func (t Time) Is(other time.Time) bool
- func (t Time) IsAfter(other time.Time) bool
- func (t Time) IsBefore(other time.Time) bool
- func (t Time) IsNullOrZero() bool
- func (t *Time) MarshalJSON() ([]byte, error)
- func (t *Time) Scan(value interface{}) error
- func (nt *Time) UnmarshalJSON(b []byte) error
- func (t Time) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
nullable boolean type. null will set valid value to false. any boolean value will be considered null when valid is set to false
func (Bool) IsNullOrZero ¶
will return true if invalid or value is empty
func (*Bool) MarshalJSON ¶
func (*Bool) UnmarshalJSON ¶
type Date ¶
Date is nullable time.Time for parsing DATE type in SQL to golang time.Time. SqlNull is for updating SQL DB value to null
func (Date) IsNullOrZero ¶
will return true if invalid or value is empty
func (*Date) MarshalJSON ¶
func (*Date) UnmarshalJSON ¶
type Float64 ¶
nullable float64 type. null will set valid value to false. any float64 value will be considered null when valid is set to false
func (Float64) IsNullOrZero ¶
will return true if invalid or value is empty
func (*Float64) MarshalJSON ¶
func (*Float64) UnmarshalJSON ¶
type Int64 ¶
nullable int64 type. null will set valid value to false. any int64 value will be considered null when valid is set to false SqlNull is for updating SQL DB value to null
func (Int64) IsNullOrZero ¶
will return true if invalid or value is zero
func (*Int64) MarshalJSON ¶
func (*Int64) UnmarshalJSON ¶
type String ¶
nullable string type. null will set valid value to false. any string value will be considered null when valid is set to false SqlNull is for updating SQL DB value to null
func (String) IsNullOrZero ¶
will return true if invalid or value is empty
func (*String) MarshalJSON ¶
func (*String) UnmarshalJSON ¶
type Time ¶
nullable time.Time type. null will set valid value to false. any time.Time value will be considered null when valid is set to false. SqlNull is for updating SQL DB value to null
func (Time) IsNullOrZero ¶
will return true if invalid or value is empty