Documentation
¶
Index ¶
- Variables
- type Bool
- type Bytes
- func (e Bytes) IsSet() bool
- func (e Bytes) IsSetZero() bool
- func (e Bytes) IsZero() bool
- func (e Bytes) MarshalJSON() ([]byte, error)
- func (e Bytes) MarshalText() ([]byte, error)
- func (e *Bytes) Scan(value interface{}) error
- func (e *Bytes) UnmarshalJSON(data []byte) (err error)
- func (e *Bytes) UnmarshalText(text []byte) error
- func (e Bytes) Value() (driver.Value, error)
- type Float64
- func (e Float64) IsSet() bool
- func (e Float64) IsSetZero() bool
- func (e Float64) IsZero() bool
- func (e Float64) MarshalJSON() ([]byte, error)
- func (e Float64) MarshalText() ([]byte, error)
- func (e *Float64) UnmarshalJSON(data []byte) (err error)
- func (e *Float64) UnmarshalText(text []byte) (err error)
- type Int64
- type String
- type Time
Constants ¶
This section is empty.
Variables ¶
var NullBytes = []byte("null")
NullBytes is a byte slice of JSON null
Functions ¶
This section is empty.
Types ¶
type Bool ¶
Bool is a nullable bool. Bool provides SQL and JSON serialization.
func (Bool) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Bool) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Bool) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type Bytes ¶ added in v0.3.0
Bytes is a nullable string. Bytes provides SQL and JSON serialization.
func (Bytes) MarshalJSON ¶ added in v0.3.0
MarshalJSON implements json.Marshaler.
func (Bytes) MarshalText ¶ added in v0.3.0
MarshalText implements encoding.TextMarshaler.
func (*Bytes) UnmarshalJSON ¶ added in v0.3.0
UnmarshalJSON implements json.Unmarshaler.
func (*Bytes) UnmarshalText ¶ added in v0.3.0
UnmarshalText implements encoding.TextUnmarshaler.
type Float64 ¶
type Float64 struct {
sql.NullFloat64
}
Float64 is a nullable float64. Float64 provides SQL and JSON serialization.
func Float64From ¶
Float64From creates a new valid Float64 from raw float64.
func (Float64) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Float64) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Float64) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Float64) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type Int64 ¶
Int64 is a nullable int64. Int64 provides SQL and JSON serialization.
func (Int64) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Int64) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Int64) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type String ¶
type String struct {
sql.NullString
}
String is a nullable string. String provides SQL and JSON serialization.
func StringFrom ¶
StringFrom creates a new valid String from raw string.
func (String) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (String) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*String) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type Time ¶
Time is a nullable string. Time provides SQL and JSON serialization.
func (Time) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Time) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
func (*Time) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.