Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullBool ¶
Nullable Bool that overrides sql.NullBool
func (NullBool) MarshalJSON ¶
func (*NullBool) UnmarshalJSON ¶
type NullFloat64 ¶
type NullFloat64 struct {
sql.NullFloat64
}
Nullable Float64 that overrides sql.NullFloat64
func (NullFloat64) MarshalJSON ¶
func (nf NullFloat64) MarshalJSON() ([]byte, error)
func (*NullFloat64) UnmarshalJSON ¶
func (nf *NullFloat64) UnmarshalJSON(data []byte) error
type NullInt64 ¶
Nullable Int64 that overrides sql.NullInt64
func (NullInt64) MarshalJSON ¶
func (*NullInt64) UnmarshalJSON ¶
type NullString ¶
type NullString struct {
sql.NullString
}
Nullable String that overrides sql.NullString
func (NullString) MarshalJSON ¶
func (ns NullString) MarshalJSON() ([]byte, error)
func (*NullString) UnmarshalJSON ¶
func (ns *NullString) UnmarshalJSON(data []byte) error
type User ¶
type User struct { ID string `json:"id"` Email string `json:"email"` Password string `json:"password,omitempty"` Name string `json:"name,omitempty"` Age NullInt64 `json:"age,omitempty"` Gender NullString `json:"gender,omitempty"` }
func (User) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.