Documentation ¶
Index ¶
- Variables
- func Float32ArrayDecode(data interface{}) (result []float32, err error)
- func Float32ArrayEncode(begin, end byte, arr []float32) *bytes.Buffer
- func Float64ArrayDecode(data interface{}) (result []float64, err error)
- func Float64ArrayEncode(begin, end byte, arr []float64) *bytes.Buffer
- func Int16ArrayDecode(data interface{}) (result []int16, err error)
- func Int16ArrayEncode(begin, end byte, arr []int16) *bytes.Buffer
- func Int32ArrayDecode(data interface{}) (result []int32, err error)
- func Int32ArrayEncode(begin, end byte, arr []int32) *bytes.Buffer
- func Int64ArrayDecode(data interface{}) (result []int64, err error)
- func Int64ArrayEncode(begin, end byte, arr []int64) *bytes.Buffer
- func Int8ArrayDecode(data interface{}) (result []int8, err error)
- func Int8ArrayEncode(begin, end byte, arr []int8) *bytes.Buffer
- func IntArrayDecode(data interface{}) (result []int, err error)
- func IntArrayEncode(begin, end byte, arr []int) *bytes.Buffer
- func Uint16ArrayDecode(data interface{}) (result []uint16, err error)
- func Uint16ArrayEncode(begin, end byte, arr []uint16) *bytes.Buffer
- func Uint32ArrayDecode(data interface{}) (result []uint32, err error)
- func Uint32ArrayEncode(begin, end byte, arr []uint32) *bytes.Buffer
- func Uint64ArrayDecode(data interface{}) (result []uint64, err error)
- func Uint64ArrayEncode(begin, end byte, arr []uint64) *bytes.Buffer
- func Uint8ArrayDecode(data interface{}) (result []uint8, err error)
- func Uint8ArrayEncode(begin, end byte, arr []uint8) *bytes.Buffer
- func UintArrayDecode(data interface{}) (result []uint, err error)
- func UintArrayEncode(begin, end byte, arr []uint) *bytes.Buffer
- type Char
- type IntArray
- func (f *IntArray) DecodeValue(v interface{}) error
- func (f IntArray) Filter(fn func(v int) (int, bool)) (resp IntArray)
- func (f IntArray) IndexOf(v int) int
- func (f IntArray) Len() int
- func (f IntArray) OneOf(vals []int) bool
- func (f IntArray) Ordered() OrderedIntArray
- func (f *IntArray) Scan(value interface{}) error
- func (f IntArray) Sort()
- func (f *IntArray) UnmarshalJSON(b []byte) error
- func (f IntArray) Value() (driver.Value, error)
- type JSON
- type NullableIntArray
- func (f *NullableIntArray) DecodeValue(v interface{}) error
- func (f NullableIntArray) Filter(fn func(v int) (int, bool)) (resp NullableIntArray)
- func (f NullableIntArray) IndexOf(v int) int
- func (f NullableIntArray) Len() int
- func (f NullableIntArray) MarshalJSON() ([]byte, error)
- func (f NullableIntArray) OneOf(vals []int) bool
- func (f NullableIntArray) Ordered() NullableOrderedIntArray
- func (f *NullableIntArray) Scan(value interface{}) error
- func (f NullableIntArray) Sort()
- func (f *NullableIntArray) UnmarshalJSON(b []byte) error
- func (f NullableIntArray) Value() (driver.Value, error)
- type NullableJSON
- func (f NullableJSON) Bytes() []byte
- func (f *NullableJSON) DecodeValue(v interface{}) (err error)
- func (f NullableJSON) Length() int
- func (f NullableJSON) MarshalJSON() ([]byte, error)
- func (f *NullableJSON) Scan(value interface{}) error
- func (f *NullableJSON) SetValue(value interface{}) (err error)
- func (f *NullableJSON) String() string
- func (f *NullableJSON) UnmarshalJSON(b []byte) error
- func (f *NullableJSON) UnmarshalTo(v interface{}) (err error)
- func (f NullableJSON) Value() (_ driver.Value, err error)
- type NullableOrderedIntArray
- func (f *NullableOrderedIntArray) DecodeValue(v interface{}) (err error)
- func (f NullableOrderedIntArray) Filter(fn func(v int) (int, bool)) (resp NullableOrderedIntArray)
- func (f NullableOrderedIntArray) IndexOf(v int) int
- func (f NullableOrderedIntArray) Len() int
- func (f NullableOrderedIntArray) OneOf(vals []int) bool
- func (f *NullableOrderedIntArray) Scan(value interface{}) (err error)
- func (f NullableOrderedIntArray) Sort()
- func (f *NullableOrderedIntArray) UnmarshalJSON(b []byte) (err error)
- func (f NullableOrderedIntArray) Value() (driver.Value, error)
- type NullableOrderedUintArray
- func (f *NullableOrderedUintArray) DecodeValue(v interface{}) (err error)
- func (f NullableOrderedUintArray) Filter(fn func(v uint) (uint, bool)) (resp NullableOrderedUintArray)
- func (f NullableOrderedUintArray) IndexOf(v uint) int
- func (f NullableOrderedUintArray) Len() int
- func (f NullableOrderedUintArray) OneOf(vals []uint) bool
- func (f *NullableOrderedUintArray) Scan(value interface{}) (err error)
- func (f NullableOrderedUintArray) Sort()
- func (f *NullableOrderedUintArray) UnmarshalJSON(b []byte) (err error)
- func (f NullableOrderedUintArray) Value() (driver.Value, error)
- type NullableStringArray
- func (f *NullableStringArray) DecodeValue(v interface{}) error
- func (f NullableStringArray) IndexOf(v string) int
- func (f NullableStringArray) Join(sep string) string
- func (f NullableStringArray) Len() int
- func (f NullableStringArray) MarshalJSON() ([]byte, error)
- func (f NullableStringArray) OneOf(vals []string) bool
- func (f *NullableStringArray) Scan(value interface{}) error
- func (f *NullableStringArray) SetArray(arr []string) *NullableStringArray
- func (f *NullableStringArray) UnmarshalJSON(b []byte) error
- func (f NullableStringArray) Value() (driver.Value, error)
- type NullableUintArray
- func (f *NullableUintArray) DecodeValue(v interface{}) error
- func (f NullableUintArray) Filter(fn func(v uint) (uint, bool)) (resp NullableUintArray)
- func (f NullableUintArray) IndexOf(v uint) int
- func (f NullableUintArray) Len() int
- func (f NullableUintArray) MarshalJSON() ([]byte, error)
- func (f NullableUintArray) OneOf(vals []uint) bool
- func (f NullableUintArray) Ordered() NullableOrderedUintArray
- func (f *NullableUintArray) Scan(value interface{}) error
- func (f NullableUintArray) Sort()
- func (f *NullableUintArray) UnmarshalJSON(b []byte) error
- func (f NullableUintArray) Value() (driver.Value, error)
- type OrderedIntArray
- func (f *OrderedIntArray) DecodeValue(v interface{}) error
- func (f OrderedIntArray) Filter(fn func(v int) (int, bool)) (resp OrderedIntArray)
- func (f OrderedIntArray) IndexOf(v int) int
- func (f OrderedIntArray) Len() int
- func (f OrderedIntArray) OneOf(vals []int) bool
- func (f *OrderedIntArray) Scan(value interface{}) (err error)
- func (f OrderedIntArray) Sort()
- func (f *OrderedIntArray) UnmarshalJSON(b []byte) (err error)
- func (f OrderedIntArray) Value() (driver.Value, error)
- type OrderedUintArray
- func (f *OrderedUintArray) DecodeValue(v interface{}) error
- func (f OrderedUintArray) Filter(fn func(v uint) (uint, bool)) (resp OrderedUintArray)
- func (f OrderedUintArray) IndexOf(v uint) int
- func (f OrderedUintArray) Len() int
- func (f OrderedUintArray) OneOf(vals []uint) bool
- func (f *OrderedUintArray) Scan(value interface{}) error
- func (f OrderedUintArray) Sort()
- func (f *OrderedUintArray) UnmarshalJSON(b []byte) (err error)
- func (f OrderedUintArray) Value() (driver.Value, error)
- type StringArray
- func (f *StringArray) DecodeValue(v interface{}) error
- func (f StringArray) IndexOf(v string) int
- func (f StringArray) Join(sep string) string
- func (f StringArray) Len() int
- func (f StringArray) OneOf(vals []string) bool
- func (f *StringArray) Scan(value interface{}) error
- func (f *StringArray) SetArray(arr []string) *StringArray
- func (f *StringArray) UnmarshalJSON(b []byte) error
- func (f StringArray) Value() (driver.Value, error)
- type UintArray
- func (f *UintArray) DecodeValue(v interface{}) error
- func (f UintArray) Filter(fn func(v uint) (uint, bool)) (resp UintArray)
- func (f UintArray) IndexOf(v uint) int
- func (f UintArray) Len() int
- func (f UintArray) OneOf(vals []uint) bool
- func (f UintArray) Ordered() OrderedUintArray
- func (f *UintArray) Scan(value interface{}) error
- func (f UintArray) Sort()
- func (f *UintArray) UnmarshalJSON(b []byte) error
- func (f UintArray) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidScan = errors.New("invalid field scan") ErrNullValueNotAllowed = errors.New("nil value not allowed") ErrInvalidDecodeValue = errors.New("invalid decode value") )
Set of errors
Functions ¶
func Float32ArrayDecode ¶
Float32ArrayDecode decodes array of type float32
func Float32ArrayEncode ¶
Float32ArrayEncode encodes array of type float32
func Float64ArrayDecode ¶
Float64ArrayDecode decodes array of type float64
func Float64ArrayEncode ¶
Float64ArrayEncode encodes array of type float64
func Int16ArrayDecode ¶
Int16ArrayDecode decodes array of type int16
func Int16ArrayEncode ¶
Int16ArrayEncode encodes array of type int16
func Int32ArrayDecode ¶
Int32ArrayDecode decodes array of type int32
func Int32ArrayEncode ¶
Int32ArrayEncode encodes array of type int32
func Int64ArrayDecode ¶
Int64ArrayDecode decodes array of type int64
func Int64ArrayEncode ¶
Int64ArrayEncode encodes array of type int64
func Int8ArrayDecode ¶
Int8ArrayDecode decodes array of type int8
func Int8ArrayEncode ¶
Int8ArrayEncode encodes array of type int8
func IntArrayDecode ¶
IntArrayDecode decodes array of type int
func IntArrayEncode ¶
IntArrayEncode encodes array of type int
func Uint16ArrayDecode ¶
Uint16ArrayDecode decodes array of type uint16
func Uint16ArrayEncode ¶
Uint16ArrayEncode encodes array of type uint16
func Uint32ArrayDecode ¶
Uint32ArrayDecode decodes array of type uint32
func Uint32ArrayEncode ¶
Uint32ArrayEncode encodes array of type uint32
func Uint64ArrayDecode ¶
Uint64ArrayDecode decodes array of type uint64
func Uint64ArrayEncode ¶
Uint64ArrayEncode encodes array of type uint64
func Uint8ArrayDecode ¶
Uint8ArrayDecode decodes array of type uint8
func Uint8ArrayEncode ¶
Uint8ArrayEncode encodes array of type uint8
func UintArrayDecode ¶
UintArrayDecode decodes array of type uint
Types ¶
type Char ¶
type Char rune
Char type of field
func (Char) MarshalJSON ¶
MarshalJSON implements the json.Marshaler
func (*Char) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller
type IntArray ¶
type IntArray NullableIntArray
IntArray type of field
func (*IntArray) DecodeValue ¶
DecodeValue implements the gocast.Decoder
func (*IntArray) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller
type JSON ¶
type JSON NullableJSON
JSON field
func (*JSON) DecodeValue ¶
DecodeValue implements the gocast.Decoder
func (JSON) MarshalJSON ¶
MarshalJSON Implement json.Marshaler
func (*JSON) UnmarshalJSON ¶
UnmarshalJSON Implement json.Unmarshaller
type NullableIntArray ¶
type NullableIntArray []int
NullableIntArray type of field
func (*NullableIntArray) DecodeValue ¶
func (f *NullableIntArray) DecodeValue(v interface{}) error
DecodeValue implements the gocast.Decoder
func (NullableIntArray) Filter ¶
func (f NullableIntArray) Filter(fn func(v int) (int, bool)) (resp NullableIntArray)
Filter current array and create filtered copy
func (NullableIntArray) MarshalJSON ¶
func (f NullableIntArray) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler
func (NullableIntArray) OneOf ¶
func (f NullableIntArray) OneOf(vals []int) bool
OneOf value in array
func (NullableIntArray) Ordered ¶
func (f NullableIntArray) Ordered() NullableOrderedIntArray
Ordered object
func (*NullableIntArray) Scan ¶
func (f *NullableIntArray) Scan(value interface{}) error
Scan implements the driver.Valuer interface, []int field
func (*NullableIntArray) UnmarshalJSON ¶
func (f *NullableIntArray) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the json.Unmarshaller
type NullableJSON ¶
type NullableJSON struct {
// contains filtered or unexported fields
}
NullableJSON field
func NewNullableJSON ¶
func NewNullableJSON(v ...interface{}) (jobj *NullableJSON, err error)
NewNullableJSON field object
func (*NullableJSON) DecodeValue ¶
func (f *NullableJSON) DecodeValue(v interface{}) (err error)
DecodeValue implements the gocast.Decoder
func (NullableJSON) MarshalJSON ¶
func (f NullableJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler
func (*NullableJSON) Scan ¶
func (f *NullableJSON) Scan(value interface{}) error
Scan implements the driver.Valuer interface, json field interface
func (*NullableJSON) SetValue ¶
func (f *NullableJSON) SetValue(value interface{}) (err error)
SetValue of json
func (*NullableJSON) UnmarshalJSON ¶
func (f *NullableJSON) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the json.Unmarshaller
func (*NullableJSON) UnmarshalTo ¶
func (f *NullableJSON) UnmarshalTo(v interface{}) (err error)
UnmarshalTo object
type NullableOrderedIntArray ¶
type NullableOrderedIntArray NullableIntArray
NullableOrderedIntArray type of field
func (*NullableOrderedIntArray) DecodeValue ¶
func (f *NullableOrderedIntArray) DecodeValue(v interface{}) (err error)
DecodeValue implements the gocast.Decoder
func (NullableOrderedIntArray) Filter ¶
func (f NullableOrderedIntArray) Filter(fn func(v int) (int, bool)) (resp NullableOrderedIntArray)
Filter current array and create filtered copy
func (NullableOrderedIntArray) IndexOf ¶
func (f NullableOrderedIntArray) IndexOf(v int) int
IndexOf array value
func (NullableOrderedIntArray) OneOf ¶
func (f NullableOrderedIntArray) OneOf(vals []int) bool
OneOf value in array
func (*NullableOrderedIntArray) Scan ¶
func (f *NullableOrderedIntArray) Scan(value interface{}) (err error)
Scan implements the driver.Valuer interface, []int field
func (*NullableOrderedIntArray) UnmarshalJSON ¶
func (f *NullableOrderedIntArray) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON implements the json.Unmarshaller
type NullableOrderedUintArray ¶
type NullableOrderedUintArray NullableUintArray
NullableOrderedUintArray type of field
func (*NullableOrderedUintArray) DecodeValue ¶
func (f *NullableOrderedUintArray) DecodeValue(v interface{}) (err error)
DecodeValue implements the gocast.Decoder
func (NullableOrderedUintArray) Filter ¶
func (f NullableOrderedUintArray) Filter(fn func(v uint) (uint, bool)) (resp NullableOrderedUintArray)
Filter current array and create filtered copy
func (NullableOrderedUintArray) IndexOf ¶
func (f NullableOrderedUintArray) IndexOf(v uint) int
IndexOf array value
func (NullableOrderedUintArray) OneOf ¶
func (f NullableOrderedUintArray) OneOf(vals []uint) bool
OneOf value in array
func (*NullableOrderedUintArray) Scan ¶
func (f *NullableOrderedUintArray) Scan(value interface{}) (err error)
Scan implements the driver.Valuer interface, []int field
func (*NullableOrderedUintArray) UnmarshalJSON ¶
func (f *NullableOrderedUintArray) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON implements the json.Unmarshaller
type NullableStringArray ¶
type NullableStringArray []string
NullableStringArray implementation
func (*NullableStringArray) DecodeValue ¶
func (f *NullableStringArray) DecodeValue(v interface{}) error
DecodeValue implements the gocast.Decoder
func (NullableStringArray) IndexOf ¶
func (f NullableStringArray) IndexOf(v string) int
IndexOf array value
func (NullableStringArray) Join ¶
func (f NullableStringArray) Join(sep string) string
Join array to string
func (NullableStringArray) MarshalJSON ¶
func (f NullableStringArray) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler
func (NullableStringArray) OneOf ¶
func (f NullableStringArray) OneOf(vals []string) bool
OneOf value in array
func (*NullableStringArray) Scan ¶
func (f *NullableStringArray) Scan(value interface{}) error
Scan implements the driver.Valuer interface, []string field
func (*NullableStringArray) SetArray ¶
func (f *NullableStringArray) SetArray(arr []string) *NullableStringArray
SetArray value
func (*NullableStringArray) UnmarshalJSON ¶
func (f *NullableStringArray) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the json.Unmarshaller
type NullableUintArray ¶
type NullableUintArray []uint
NullableUintArray type of field
func (*NullableUintArray) DecodeValue ¶
func (f *NullableUintArray) DecodeValue(v interface{}) error
DecodeValue implements the gocast.Decoder
func (NullableUintArray) Filter ¶
func (f NullableUintArray) Filter(fn func(v uint) (uint, bool)) (resp NullableUintArray)
Filter current array and create filtered copy
func (NullableUintArray) IndexOf ¶
func (f NullableUintArray) IndexOf(v uint) int
IndexOf array value
func (NullableUintArray) MarshalJSON ¶
func (f NullableUintArray) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler
func (NullableUintArray) OneOf ¶
func (f NullableUintArray) OneOf(vals []uint) bool
OneOf value in array
func (NullableUintArray) Ordered ¶
func (f NullableUintArray) Ordered() NullableOrderedUintArray
Ordered object
func (*NullableUintArray) Scan ¶
func (f *NullableUintArray) Scan(value interface{}) error
Scan implements the driver.Valuer interface, []int field
func (*NullableUintArray) UnmarshalJSON ¶
func (f *NullableUintArray) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the json.Unmarshaller
type OrderedIntArray ¶
type OrderedIntArray NullableOrderedIntArray
OrderedIntArray type of field
func (*OrderedIntArray) DecodeValue ¶
func (f *OrderedIntArray) DecodeValue(v interface{}) error
DecodeValue implements the gocast.Decoder
func (OrderedIntArray) Filter ¶
func (f OrderedIntArray) Filter(fn func(v int) (int, bool)) (resp OrderedIntArray)
Filter current array and create filtered copy
func (*OrderedIntArray) Scan ¶
func (f *OrderedIntArray) Scan(value interface{}) (err error)
Scan implements the driver.Valuer interface, []int field
func (*OrderedIntArray) UnmarshalJSON ¶
func (f *OrderedIntArray) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON implements the json.Unmarshaller
type OrderedUintArray ¶
type OrderedUintArray NullableOrderedUintArray
OrderedUintArray type of field
func (*OrderedUintArray) DecodeValue ¶
func (f *OrderedUintArray) DecodeValue(v interface{}) error
DecodeValue implements the gocast.Decoder
func (OrderedUintArray) Filter ¶
func (f OrderedUintArray) Filter(fn func(v uint) (uint, bool)) (resp OrderedUintArray)
Filter current array and create filtered copy
func (OrderedUintArray) OneOf ¶
func (f OrderedUintArray) OneOf(vals []uint) bool
OneOf value in array
func (*OrderedUintArray) Scan ¶
func (f *OrderedUintArray) Scan(value interface{}) error
Scan implements the driver.Valuer interface, []int field
func (*OrderedUintArray) UnmarshalJSON ¶
func (f *OrderedUintArray) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON implements the json.Unmarshaller
type StringArray ¶
type StringArray NullableStringArray
StringArray implementation
func (*StringArray) DecodeValue ¶
func (f *StringArray) DecodeValue(v interface{}) error
DecodeValue implements the gocast.Decoder
func (*StringArray) Scan ¶
func (f *StringArray) Scan(value interface{}) error
Scan implements the driver.Valuer interface, []string field
func (*StringArray) SetArray ¶
func (f *StringArray) SetArray(arr []string) *StringArray
SetArray value
func (*StringArray) UnmarshalJSON ¶
func (f *StringArray) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the json.Unmarshaller
type UintArray ¶
type UintArray NullableUintArray
UintArray type of field
func (*UintArray) DecodeValue ¶
DecodeValue implements the gocast.Decoder
func (*UintArray) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller