Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decode ¶
type Decode struct {
// contains filtered or unexported fields
}
Decode структура для декодирования jsoniter.API
type Decoder ¶
type Decoder interface { Decode(r io.Reader, val interface{}) error Encode(w io.Writer, value interface{}) error }
Decoder интерфейс для декодирования
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
}
func NewNullUint64 ¶
func NewNullUint64(n uint64) NullUint64
Click to show internal directories.
Click to hide internal directories.