Documentation
¶
Index ¶
- type AnyArray
- type AnyObject
- type Array
- type Bool
- func (v Bool) Get(value bool) bool
- func (v Bool) IsDefined() bool
- func (v Bool) MarshalEasyJSON(w *jwriter.Writer)
- func (v Bool) MarshalJSON() ([]byte, error)
- func (v *Bool) Set(value bool)
- func (v *Bool) SetDefined(isDefined bool)
- func (v *Bool) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Bool) UnmarshalJSON(data []byte) error
- type BoolArray
- type Float32
- func (v Float32) Get(value float32) float32
- func (v Float32) IsDefined() bool
- func (v Float32) MarshalEasyJSON(w *jwriter.Writer)
- func (v Float32) MarshalJSON() ([]byte, error)
- func (v *Float32) Set(value float32)
- func (v *Float32) SetDefined(isDefined bool)
- func (v *Float32) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Float32) UnmarshalJSON(data []byte) error
- type Float32Array
- func (v Float32Array) IsDefined() bool
- func (v Float32Array) MarshalEasyJSON(w *jwriter.Writer)
- func (v Float32Array) MarshalJSON() ([]byte, error)
- func (v *Float32Array) SetDefined(isDefined bool)
- func (v *Float32Array) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Float32Array) UnmarshalJSON(data []byte) error
- type Float64
- func (v Float64) Get(value float64) float64
- func (v Float64) IsDefined() bool
- func (v Float64) MarshalEasyJSON(w *jwriter.Writer)
- func (v Float64) MarshalJSON() ([]byte, error)
- func (v *Float64) Set(value float64)
- func (v *Float64) SetDefined(isDefined bool)
- func (v *Float64) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Float64) UnmarshalJSON(data []byte) error
- type Float64Array
- func (v Float64Array) IsDefined() bool
- func (v Float64Array) MarshalEasyJSON(w *jwriter.Writer)
- func (v Float64Array) MarshalJSON() ([]byte, error)
- func (v *Float64Array) SetDefined(isDefined bool)
- func (v *Float64Array) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Float64Array) UnmarshalJSON(data []byte) error
- type Int
- func (v Int) Get(value int) int
- func (v Int) IsDefined() bool
- func (v Int) MarshalEasyJSON(w *jwriter.Writer)
- func (v Int) MarshalJSON() ([]byte, error)
- func (v *Int) Set(value int)
- func (v *Int) SetDefined(isDefined bool)
- func (v *Int) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Int) UnmarshalJSON(data []byte) error
- type Int8
- func (v Int8) Get(value int8) int8
- func (v Int8) IsDefined() bool
- func (v Int8) MarshalEasyJSON(w *jwriter.Writer)
- func (v Int8) MarshalJSON() ([]byte, error)
- func (v *Int8) Set(value int8)
- func (v *Int8) SetDefined(isDefined bool)
- func (v *Int8) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Int8) UnmarshalJSON(data []byte) error
- type Int8Array
- type Int16
- func (v Int16) Get(value int16) int16
- func (v Int16) IsDefined() bool
- func (v Int16) MarshalEasyJSON(w *jwriter.Writer)
- func (v Int16) MarshalJSON() ([]byte, error)
- func (v *Int16) Set(value int16)
- func (v *Int16) SetDefined(isDefined bool)
- func (v *Int16) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Int16) UnmarshalJSON(data []byte) error
- type Int16Array
- type Int32
- func (v Int32) Get(value int32) int32
- func (v Int32) IsDefined() bool
- func (v Int32) MarshalEasyJSON(w *jwriter.Writer)
- func (v Int32) MarshalJSON() ([]byte, error)
- func (v *Int32) Set(value int32)
- func (v *Int32) SetDefined(isDefined bool)
- func (v *Int32) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Int32) UnmarshalJSON(data []byte) error
- type Int32Array
- type Int64
- func (v Int64) Get(value int64) int64
- func (v Int64) IsDefined() bool
- func (v Int64) MarshalEasyJSON(w *jwriter.Writer)
- func (v Int64) MarshalJSON() ([]byte, error)
- func (v *Int64) Set(value int64)
- func (v *Int64) SetDefined(isDefined bool)
- func (v *Int64) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *Int64) UnmarshalJSON(data []byte) error
- type Int64Array
- type IntArray
- type Object
- type String
- func (v String) Get(value string) string
- func (v String) IsDefined() bool
- func (v String) MarshalEasyJSON(w *jwriter.Writer)
- func (v String) MarshalJSON() ([]byte, error)
- func (v *String) Set(value string)
- func (v *String) SetDefined(isDefined bool)
- func (v *String) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *String) UnmarshalJSON(data []byte) error
- type StringArray
- func (v StringArray) IsDefined() bool
- func (v StringArray) MarshalEasyJSON(w *jwriter.Writer)
- func (v StringArray) MarshalJSON() ([]byte, error)
- func (v *StringArray) SetDefined(isDefined bool)
- func (v *StringArray) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StringArray) UnmarshalJSON(data []byte) error
- type UInt
- func (v UInt) Get(value uint) uint
- func (v UInt) IsDefined() bool
- func (v UInt) MarshalEasyJSON(w *jwriter.Writer)
- func (v UInt) MarshalJSON() ([]byte, error)
- func (v *UInt) Set(value uint)
- func (v *UInt) SetDefined(isDefined bool)
- func (v *UInt) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UInt) UnmarshalJSON(data []byte) error
- type UInt8
- func (v UInt8) Get(value uint8) uint8
- func (v UInt8) IsDefined() bool
- func (v UInt8) MarshalEasyJSON(w *jwriter.Writer)
- func (v UInt8) MarshalJSON() ([]byte, error)
- func (v *UInt8) Set(value uint8)
- func (v *UInt8) SetDefined(isDefined bool)
- func (v *UInt8) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UInt8) UnmarshalJSON(data []byte) error
- type UInt8Array
- type UInt16
- func (v UInt16) Get(value uint16) uint16
- func (v UInt16) IsDefined() bool
- func (v UInt16) MarshalEasyJSON(w *jwriter.Writer)
- func (v UInt16) MarshalJSON() ([]byte, error)
- func (v *UInt16) Set(value uint16)
- func (v *UInt16) SetDefined(isDefined bool)
- func (v *UInt16) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UInt16) UnmarshalJSON(data []byte) error
- type UInt16Array
- func (v UInt16Array) IsDefined() bool
- func (v UInt16Array) MarshalEasyJSON(w *jwriter.Writer)
- func (v UInt16Array) MarshalJSON() ([]byte, error)
- func (v *UInt16Array) SetDefined(isDefined bool)
- func (v *UInt16Array) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UInt16Array) UnmarshalJSON(data []byte) error
- type UInt32
- func (v UInt32) Get(value uint32) uint32
- func (v UInt32) IsDefined() bool
- func (v UInt32) MarshalEasyJSON(w *jwriter.Writer)
- func (v UInt32) MarshalJSON() ([]byte, error)
- func (v *UInt32) Set(value uint32)
- func (v *UInt32) SetDefined(isDefined bool)
- func (v *UInt32) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UInt32) UnmarshalJSON(data []byte) error
- type UInt32Array
- func (v UInt32Array) IsDefined() bool
- func (v UInt32Array) MarshalEasyJSON(w *jwriter.Writer)
- func (v UInt32Array) MarshalJSON() ([]byte, error)
- func (v *UInt32Array) SetDefined(isDefined bool)
- func (v *UInt32Array) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UInt32Array) UnmarshalJSON(data []byte) error
- type UInt64
- func (v UInt64) Get(value uint64) uint64
- func (v UInt64) IsDefined() bool
- func (v UInt64) MarshalEasyJSON(w *jwriter.Writer)
- func (v UInt64) MarshalJSON() ([]byte, error)
- func (v *UInt64) Set(value uint64)
- func (v *UInt64) SetDefined(isDefined bool)
- func (v *UInt64) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UInt64) UnmarshalJSON(data []byte) error
- type UInt64Array
- func (v UInt64Array) IsDefined() bool
- func (v UInt64Array) MarshalEasyJSON(w *jwriter.Writer)
- func (v UInt64Array) MarshalJSON() ([]byte, error)
- func (v *UInt64Array) SetDefined(isDefined bool)
- func (v *UInt64Array) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *UInt64Array) UnmarshalJSON(data []byte) error
- type UIntArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyArray ¶
type AnyArray[T any] struct { Value []T // contains filtered or unexported fields }
AnyArray is a container for slice type that provides optional semantics without using pointers. It uses encoding/json for marshaling and unmarshaling.
func (AnyArray[T]) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (AnyArray[T]) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*AnyArray[T]) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*AnyArray[T]) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type AnyObject ¶
type AnyObject[T any] struct { Value T // contains filtered or unexported fields }
AnyObject is a container for struct type that provides optional semantics without using pointers. It uses encoding/json for marshaling and unmarshaling.
func (AnyObject[T]) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (AnyObject[T]) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*AnyObject[T]) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*AnyObject[T]) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Array ¶
type Array[T easyjson.MarshalerUnmarshaler] struct { Value []T New func() T // contains filtered or unexported fields }
Array is a container for slice type that provides optional semantics without using pointers. The generic argument T must be of type pointer to any struct that implements easyjson marshaler and unmarshaler interfaces.
func (Array[T]) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Array[T]) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Array[T]) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Array[T]) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Array[T]) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Array[T]) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Bool ¶
Bool is a container for bool type that provides optional semantics without using pointers.
func (Bool) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (Bool) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Bool) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Bool) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Bool) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Bool) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type BoolArray ¶
type BoolArray struct {
Value []bool
// contains filtered or unexported fields
}
BoolArray is a container for bool slice type that provides optional semantics without using pointers.
func (BoolArray) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (BoolArray) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (BoolArray) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*BoolArray) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*BoolArray) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*BoolArray) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Float32 ¶
Float32 is a container for float32 type that provides optional semantics without using pointers.
func (Float32) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (Float32) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Float32) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Float32) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Float32) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Float32) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Float32) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Float32Array ¶
type Float32Array struct {
Value []float32
// contains filtered or unexported fields
}
Float32Array is a container for float32 slice type that provides optional semantics without using pointers.
func (Float32Array) IsDefined ¶
func (v Float32Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Float32Array) MarshalEasyJSON ¶
func (v Float32Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Float32Array) MarshalJSON ¶
func (v Float32Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*Float32Array) SetDefined ¶
func (v *Float32Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*Float32Array) UnmarshalEasyJSON ¶
func (v *Float32Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Float32Array) UnmarshalJSON ¶
func (v *Float32Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type Float64 ¶
Float64 is a container for float64 type that provides optional semantics without using pointers.
func (Float64) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (Float64) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Float64) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Float64) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Float64) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Float64) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Float64) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Float64Array ¶
type Float64Array struct {
Value []float64
// contains filtered or unexported fields
}
Float64Array is a container for float64 slice type that provides optional semantics without using pointers.
func (Float64Array) IsDefined ¶
func (v Float64Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Float64Array) MarshalEasyJSON ¶
func (v Float64Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Float64Array) MarshalJSON ¶
func (v Float64Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*Float64Array) SetDefined ¶
func (v *Float64Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*Float64Array) UnmarshalEasyJSON ¶
func (v *Float64Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Float64Array) UnmarshalJSON ¶
func (v *Float64Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type Int ¶
Int is a container for int type that provides optional semantics without using pointers.
func (Int) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (Int) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Int) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Int) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Int8 ¶
Int8 is a container for int8 type that provides optional semantics without using pointers.
func (Int8) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (Int8) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int8) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int8) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Int8) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Int8) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int8) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Int8Array ¶
type Int8Array struct {
Value []int8
// contains filtered or unexported fields
}
Int8Array is a container for int8 slice type that provides optional semantics without using pointers.
func (Int8Array) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int8Array) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int8Array) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Int8Array) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Int8Array) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int8Array) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Int16 ¶
Int16 is a container for int16 type that provides optional semantics without using pointers.
func (Int16) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (Int16) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int16) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int16) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Int16) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Int16) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int16) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Int16Array ¶
type Int16Array struct {
Value []int16
// contains filtered or unexported fields
}
Int16Array is a container for int16 slice type that provides optional semantics without using pointers.
func (Int16Array) IsDefined ¶
func (v Int16Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int16Array) MarshalEasyJSON ¶
func (v Int16Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int16Array) MarshalJSON ¶
func (v Int16Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*Int16Array) SetDefined ¶
func (v *Int16Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*Int16Array) UnmarshalEasyJSON ¶
func (v *Int16Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int16Array) UnmarshalJSON ¶
func (v *Int16Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type Int32 ¶
Int32 is a container for int32 type that provides optional semantics without using pointers.
func (Int32) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (Int32) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int32) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int32) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Int32) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Int32) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int32) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Int32Array ¶
type Int32Array struct {
Value []int32
// contains filtered or unexported fields
}
Int32Array is a container for int32 slice type that provides optional semantics without using pointers.
func (Int32Array) IsDefined ¶
func (v Int32Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int32Array) MarshalEasyJSON ¶
func (v Int32Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int32Array) MarshalJSON ¶
func (v Int32Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*Int32Array) SetDefined ¶
func (v *Int32Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*Int32Array) UnmarshalEasyJSON ¶
func (v *Int32Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int32Array) UnmarshalJSON ¶
func (v *Int32Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type Int64 ¶
Int64 is a container for int64 type that provides optional semantics without using pointers.
func (Int64) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (Int64) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int64) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int64) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Int64) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Int64) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Int64Array ¶
type Int64Array struct {
Value []int64
// contains filtered or unexported fields
}
Int64Array is a container for int64 slice type that provides optional semantics without using pointers.
func (Int64Array) IsDefined ¶
func (v Int64Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Int64Array) MarshalEasyJSON ¶
func (v Int64Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Int64Array) MarshalJSON ¶
func (v Int64Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*Int64Array) SetDefined ¶
func (v *Int64Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*Int64Array) UnmarshalEasyJSON ¶
func (v *Int64Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Int64Array) UnmarshalJSON ¶
func (v *Int64Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type IntArray ¶
type IntArray struct {
Value []int
// contains filtered or unexported fields
}
IntArray is a container for int slice type that provides optional semantics without using pointers.
func (IntArray) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (IntArray) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (IntArray) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*IntArray) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*IntArray) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*IntArray) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type Object ¶
type Object[T easyjson.MarshalerUnmarshaler] struct { Value T New func() T // contains filtered or unexported fields }
Object is a container for struct type that provides optional semantics without using pointers. The generic argument T must be of type pointer to any struct that implements easyjson marshaler and unmarshaler interfaces.
func (Object[T]) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (Object[T]) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (Object[T]) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*Object[T]) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*Object[T]) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*Object[T]) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type String ¶
String is a container for string type that provides optional semantics without using pointers.
func (String) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (String) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (String) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (String) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*String) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*String) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type StringArray ¶
type StringArray struct {
Value []string
// contains filtered or unexported fields
}
StringArray is a container for string slice type that provides optional semantics without using pointers.
func (StringArray) IsDefined ¶
func (v StringArray) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (StringArray) MarshalEasyJSON ¶
func (v StringArray) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (StringArray) MarshalJSON ¶
func (v StringArray) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*StringArray) SetDefined ¶
func (v *StringArray) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*StringArray) UnmarshalEasyJSON ¶
func (v *StringArray) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*StringArray) UnmarshalJSON ¶
func (v *StringArray) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt ¶
UInt is a container for uint type that provides optional semantics without using pointers.
func (UInt) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (UInt) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*UInt) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt8 ¶
UInt8 is a container for uint8 type that provides optional semantics without using pointers.
func (UInt8) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (UInt8) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt8) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt8) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*UInt8) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt8) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt8) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt8Array ¶
type UInt8Array struct {
Value []uint8
// contains filtered or unexported fields
}
UInt8Array is a container for uint8 slice type that provides optional semantics without using pointers.
func (UInt8Array) IsDefined ¶
func (v UInt8Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt8Array) MarshalEasyJSON ¶
func (v UInt8Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt8Array) MarshalJSON ¶
func (v UInt8Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*UInt8Array) SetDefined ¶
func (v *UInt8Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt8Array) UnmarshalEasyJSON ¶
func (v *UInt8Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt8Array) UnmarshalJSON ¶
func (v *UInt8Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt16 ¶
UInt16 is a container for uint16 type that provides optional semantics without using pointers.
func (UInt16) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (UInt16) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt16) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt16) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*UInt16) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt16) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt16) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt16Array ¶
type UInt16Array struct {
Value []uint16
// contains filtered or unexported fields
}
UInt16Array is a container for uint16 slice type that provides optional semantics without using pointers.
func (UInt16Array) IsDefined ¶
func (v UInt16Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt16Array) MarshalEasyJSON ¶
func (v UInt16Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt16Array) MarshalJSON ¶
func (v UInt16Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*UInt16Array) SetDefined ¶
func (v *UInt16Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt16Array) UnmarshalEasyJSON ¶
func (v *UInt16Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt16Array) UnmarshalJSON ¶
func (v *UInt16Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt32 ¶
UInt32 is a container for uint32 type that provides optional semantics without using pointers.
func (UInt32) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (UInt32) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt32) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt32) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*UInt32) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt32) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt32) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt32Array ¶
type UInt32Array struct {
Value []uint32
// contains filtered or unexported fields
}
UInt32Array is a container for uint32 slice type that provides optional semantics without using pointers.
func (UInt32Array) IsDefined ¶
func (v UInt32Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt32Array) MarshalEasyJSON ¶
func (v UInt32Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt32Array) MarshalJSON ¶
func (v UInt32Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*UInt32Array) SetDefined ¶
func (v *UInt32Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt32Array) UnmarshalEasyJSON ¶
func (v *UInt32Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt32Array) UnmarshalJSON ¶
func (v *UInt32Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt64 ¶
UInt64 is a container for uint64 type that provides optional semantics without using pointers.
func (UInt64) Get ¶
Get returns the value if it is not null, otherwise it returns the given default value.
func (UInt64) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt64) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt64) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*UInt64) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt64) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt64) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
type UInt64Array ¶
type UInt64Array struct {
Value []uint64
// contains filtered or unexported fields
}
UInt64Array is a container for uint64 slice type that provides optional semantics without using pointers.
func (UInt64Array) IsDefined ¶
func (v UInt64Array) IsDefined() bool
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UInt64Array) MarshalEasyJSON ¶
func (v UInt64Array) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UInt64Array) MarshalJSON ¶
func (v UInt64Array) MarshalJSON() ([]byte, error)
MarshalJSON implements a standard json marshaler interface.
func (*UInt64Array) SetDefined ¶
func (v *UInt64Array) SetDefined(isDefined bool)
SetDefined is the setter for isDefined, see IsDefined.
func (*UInt64Array) UnmarshalEasyJSON ¶
func (v *UInt64Array) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UInt64Array) UnmarshalJSON ¶
func (v *UInt64Array) UnmarshalJSON(data []byte) error
UnmarshalJSON implements a standard json unmarshaler interface.
type UIntArray ¶
type UIntArray struct {
Value []uint
// contains filtered or unexported fields
}
UIntArray is a container for uint slice type that provides optional semantics without using pointers.
func (UIntArray) IsDefined ¶
IsDefined determines whether this field should be included in the json output, if it has the omitempty tag.
func (UIntArray) MarshalEasyJSON ¶
MarshalEasyJSON does JSON marshaling using easyjson interface.
func (UIntArray) MarshalJSON ¶
MarshalJSON implements a standard json marshaler interface.
func (*UIntArray) SetDefined ¶
SetDefined is the setter for isDefined, see IsDefined.
func (*UIntArray) UnmarshalEasyJSON ¶
UnmarshalEasyJSON does JSON unmarshaling using easyjson interface.
func (*UIntArray) UnmarshalJSON ¶
UnmarshalJSON implements a standard json unmarshaler interface.
Source Files
¶
- any_array.go
- any_object.go
- array.go
- bool.go
- bool_array.go
- float32.go
- float32_array.go
- float64.go
- float64_array.go
- int.go
- int16.go
- int16_array.go
- int32.go
- int32_array.go
- int64.go
- int64_array.go
- int8.go
- int8_array.go
- int_array.go
- object.go
- string.go
- string_array.go
- uint.go
- uint16.go
- uint16_array.go
- uint32.go
- uint32_array.go
- uint64.go
- uint64_array.go
- uint8.go
- uint8_array.go
- uint_array.go