Documentation
¶
Index ¶
- type Bool
- type Byte
- type Float32
- type Float64
- type Int
- type Int8
- type Int16
- type Int32
- type Int64
- type NullableBase
- func (nv NullableBase[T]) IsNull() bool
- func (nv NullableBase[T]) MarshalJSON() ([]byte, error)
- func (nv *NullableBase[T]) SetNull()
- func (nv *NullableBase[T]) SetSqlNull(value sql.Null[T])
- func (nv *NullableBase[T]) SetValue(value T)
- func (nv NullableBase[T]) SqlNull() sql.Null[T]
- func (nv *NullableBase[T]) UnmarshalJSON(data []byte) error
- func (nv NullableBase[T]) Value() T
- func (nv NullableBase[T]) ValueOrZero() T
- type Rune
- type String
- type Time
- type UInt
- type UInt8
- type UInt16
- type UInt32
- type UInt64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
NullableBase[bool]
}
func NewNullBool ¶ added in v1.0.2
func NewNullBool() Bool
type Float32 ¶
type Float32 struct {
NullableBase[float32]
}
func NewFloat32 ¶ added in v1.0.2
func NewNullFloat32 ¶ added in v1.0.2
func NewNullFloat32() Float32
type Float64 ¶
type Float64 struct {
NullableBase[float64]
}
func NewFloat64 ¶ added in v1.0.2
func NewNullFloat64 ¶ added in v1.0.2
func NewNullFloat64() Float64
type Int ¶
type Int struct {
NullableBase[int]
}
func NewNullInt ¶ added in v1.0.2
func NewNullInt() Int
type Int8 ¶
type Int8 struct {
NullableBase[int8]
}
func NewNullInt8 ¶ added in v1.0.2
func NewNullInt8() Int8
type Int16 ¶
type Int16 struct {
NullableBase[int16]
}
func NewNullInt16 ¶ added in v1.0.2
func NewNullInt16() Int16
type Int32 ¶
type Int32 struct {
NullableBase[int32]
}
func NewNullInt32 ¶ added in v1.0.2
func NewNullInt32() Int32
type Int64 ¶
type Int64 struct {
NullableBase[int64]
}
func NewNullInt64 ¶ added in v1.0.2
func NewNullInt64() Int64
type NullableBase ¶ added in v1.0.2
type NullableBase[T any] struct { // contains filtered or unexported fields }
func NewNullableBase ¶ added in v1.0.2
func NewNullableBase[T any](value T) NullableBase[T]
func (NullableBase[T]) IsNull ¶ added in v1.0.2
func (nv NullableBase[T]) IsNull() bool
func (NullableBase[T]) MarshalJSON ¶ added in v1.0.2
func (nv NullableBase[T]) MarshalJSON() ([]byte, error)
func (*NullableBase[T]) SetNull ¶ added in v1.0.2
func (nv *NullableBase[T]) SetNull()
func (*NullableBase[T]) SetSqlNull ¶ added in v1.0.4
func (nv *NullableBase[T]) SetSqlNull(value sql.Null[T])
func (*NullableBase[T]) SetValue ¶ added in v1.0.2
func (nv *NullableBase[T]) SetValue(value T)
func (NullableBase[T]) SqlNull ¶ added in v1.0.4
func (nv NullableBase[T]) SqlNull() sql.Null[T]
func (*NullableBase[T]) UnmarshalJSON ¶ added in v1.0.2
func (nv *NullableBase[T]) UnmarshalJSON(data []byte) error
func (NullableBase[T]) Value ¶ added in v1.0.2
func (nv NullableBase[T]) Value() T
func (NullableBase[T]) ValueOrZero ¶ added in v1.1.0
func (nv NullableBase[T]) ValueOrZero() T
type String ¶
type String struct {
NullableBase[string]
}
func NewNullString ¶ added in v1.0.2
func NewNullString() String
type Time ¶ added in v1.0.2
type Time struct {
NullableBase[time.Time]
}
func NewNullTime ¶ added in v1.0.2
func NewNullTime() Time
type UInt ¶
type UInt struct {
NullableBase[uint]
}
func NewNullUInt ¶ added in v1.0.2
func NewNullUInt() UInt
type UInt8 ¶
type UInt8 struct {
NullableBase[uint8]
}
func NewNullUInt8 ¶ added in v1.0.2
func NewNullUInt8() UInt8
type UInt16 ¶
type UInt16 struct {
NullableBase[uint16]
}
func NewNullUInt16 ¶ added in v1.0.2
func NewNullUInt16() UInt16
type UInt32 ¶
type UInt32 struct {
NullableBase[uint32]
}
func NewNullUInt32 ¶ added in v1.0.2
func NewNullUInt32() UInt32
Click to show internal directories.
Click to hide internal directories.