Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
Bool represents a bool that may be null. Similar to sql.NullBool, but implement json.Marshaler/json.Unmarshaler
func (Bool) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
type Float64 ¶
type Float64 struct {
sql.NullFloat64
}
Float64 represents a float64 that may be null. Similar to sql.NullFloat64, but implement json.Marshaler/json.Unmarshaler
func (Float64) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Float64) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
type Int64 ¶
Int64 represents an int64 that may be null. Similar to sql.NullInt64, but implement json.Marshaler/json.Unmarshaler
func (Int64) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
type String ¶
type String struct {
sql.NullString
}
String represents a string that may be null. Similar to sql.NullString, but implement json.Marshaler/json.Unmarshaler
func (String) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface