Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTypeLike = iota + 1 EventTypeSubscribe EventTypeShowPost )
View Source
const ( TypePost = iota + 1 TypeAvatar TypeUserModerate )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullBool ¶
func NewNullBool ¶
func (*NullBool) MarshalJSON ¶
MarshalJSON method is called by json.Marshal, whenever it is of type NullString
func (*NullBool) UnmarshalJSON ¶
type NullFloat64 ¶
type NullFloat64 struct {
sql.NullFloat64
}
func NewNullFloat64 ¶
func NewNullFloat64(n float64) NullFloat64
func (*NullFloat64) MarshalJSON ¶
func (x *NullFloat64) MarshalJSON() ([]byte, error)
MarshalJSON method is called by json.Marshal, whenever it is of type NullFloat64
func (*NullFloat64) UnmarshalJSON ¶
func (x *NullFloat64) UnmarshalJSON(data []byte) error
type NullInt64 ¶
func NewNullInt64 ¶
func (*NullInt64) MarshalJSON ¶
MarshalJSON method is called by json.Marshal, whenever it is of type NullString
func (*NullInt64) UnmarshalJSON ¶
type NullString ¶
type NullString struct {
sql.NullString
}
NullString is a wrapper around sql.NullString
func NewNullString ¶
func NewNullString(s string) NullString
func (*NullString) MarshalJSON ¶
func (x *NullString) MarshalJSON() ([]byte, error)
MarshalJSON method is called by json.Marshal, whenever it is of type NullString
func (*NullString) UnmarshalJSON ¶
func (x *NullString) UnmarshalJSON(data []byte) error
type NullUUID ¶
func NewNullUUID ¶
func (*NullUUID) MarshalJSON ¶
func (*NullUUID) UnmarshalJSON ¶
type NullUint64 ¶
type NullUint64 struct {
null.Uint64
}
Click to show internal directories.
Click to hide internal directories.