Versions in this module Expand all Collapse all v10 v10.0.0 Nov 26, 2023 Changes in this version + var NullBytes = []byte("null") + type Bool struct + Bool bool + Set bool + Valid bool + func BoolFrom(b bool) Bool + func BoolFromPtr(b *bool) Bool + func NewBool(b, valid bool) Bool + func (b *Bool) Scan(value interface{}) error + func (b *Bool) SetValid(v bool) + func (b *Bool) UnmarshalJSON(data []byte) error + func (b *Bool) UnmarshalText(text []byte) error + func (b Bool) IsSet() bool + func (b Bool) IsValid() bool + func (b Bool) IsZero() bool + func (b Bool) MarshalJSON() ([]byte, error) + func (b Bool) MarshalText() ([]byte, error) + func (b Bool) Ptr() *bool + func (b Bool) Value() (driver.Value, error) + func (b Bool) ValueOrZero() bool + type Byte struct + Byte byte + Set bool + Valid bool + func ByteFrom(b byte) Byte + func ByteFromPtr(b *byte) Byte + func NewByte(b byte, valid bool) Byte + func (b *Byte) Scan(value interface{}) error + func (b *Byte) SetValid(n byte) + func (b *Byte) UnmarshalJSON(data []byte) error + func (b *Byte) UnmarshalText(text []byte) error + func (b Byte) IsSet() bool + func (b Byte) IsValid() bool + func (b Byte) IsZero() bool + func (b Byte) MarshalJSON() ([]byte, error) + func (b Byte) MarshalText() ([]byte, error) + func (b Byte) Ptr() *byte + func (b Byte) Value() (driver.Value, error) + func (b Byte) ValueOrZero() byte + type Bytes struct + Bytes []byte + Set bool + Valid bool + func BytesFrom(b []byte) Bytes + func BytesFromPtr(b *[]byte) Bytes + func NewBytes(b []byte, valid bool) Bytes + func (b *Bytes) Scan(value interface{}) error + func (b *Bytes) SetValid(n []byte) + func (b *Bytes) UnmarshalJSON(data []byte) error + func (b *Bytes) UnmarshalText(text []byte) error + func (b Bytes) IsSet() bool + func (b Bytes) IsValid() bool + func (b Bytes) IsZero() bool + func (b Bytes) MarshalJSON() ([]byte, error) + func (b Bytes) MarshalText() ([]byte, error) + func (b Bytes) Ptr() *[]byte + func (b Bytes) Value() (driver.Value, error) + func (b Bytes) ValueOrZero() []byte + type Float32 struct + Float32 float32 + Set bool + Valid bool + func Float32From(f float32) Float32 + func Float32FromPtr(f *float32) Float32 + func NewFloat32(f float32, valid bool) Float32 + func (f *Float32) Scan(value interface{}) error + func (f *Float32) SetValid(n float32) + func (f *Float32) UnmarshalJSON(data []byte) error + func (f *Float32) UnmarshalText(text []byte) error + func (f Float32) IsSet() bool + func (f Float32) IsValid() bool + func (f Float32) IsZero() bool + func (f Float32) MarshalJSON() ([]byte, error) + func (f Float32) MarshalText() ([]byte, error) + func (f Float32) Ptr() *float32 + func (f Float32) Value() (driver.Value, error) + func (f Float32) ValueOrZero() float32 + type Float64 struct + Float64 float64 + Set bool + Valid bool + func Float64From(f float64) Float64 + func Float64FromPtr(f *float64) Float64 + func NewFloat64(f float64, valid bool) Float64 + func (f *Float64) Scan(value interface{}) error + func (f *Float64) SetValid(n float64) + func (f *Float64) UnmarshalJSON(data []byte) error + func (f *Float64) UnmarshalText(text []byte) error + func (f Float64) IsSet() bool + func (f Float64) IsValid() bool + func (f Float64) IsZero() bool + func (f Float64) MarshalJSON() ([]byte, error) + func (f Float64) MarshalText() ([]byte, error) + func (f Float64) Ptr() *float64 + func (f Float64) Value() (driver.Value, error) + func (f Float64) ValueOrZero() float64 + type Int struct + Int int + Set bool + Valid bool + func IntFrom(i int) Int + func IntFromPtr(i *int) Int + func NewInt(i int, valid bool) Int + func (i *Int) Scan(value interface{}) error + func (i *Int) SetValid(n int) + func (i *Int) UnmarshalJSON(data []byte) error + func (i *Int) UnmarshalText(text []byte) error + func (i Int) IsSet() bool + func (i Int) IsValid() bool + func (i Int) IsZero() bool + func (i Int) MarshalJSON() ([]byte, error) + func (i Int) MarshalText() ([]byte, error) + func (i Int) Ptr() *int + func (i Int) Value() (driver.Value, error) + func (i Int) ValueOrZero() int + type Int16 struct + Int16 int16 + Set bool + Valid bool + func Int16From(i int16) Int16 + func Int16FromPtr(i *int16) Int16 + func NewInt16(i int16, valid bool) Int16 + func (i *Int16) Scan(value interface{}) error + func (i *Int16) SetValid(n int16) + func (i *Int16) UnmarshalJSON(data []byte) error + func (i *Int16) UnmarshalText(text []byte) error + func (i Int16) IsSet() bool + func (i Int16) IsValid() bool + func (i Int16) IsZero() bool + func (i Int16) MarshalJSON() ([]byte, error) + func (i Int16) MarshalText() ([]byte, error) + func (i Int16) Ptr() *int16 + func (i Int16) Value() (driver.Value, error) + func (i Int16) ValueOrZero() int16 + type Int32 struct + Int32 int32 + Set bool + Valid bool + func Int32From(i int32) Int32 + func Int32FromPtr(i *int32) Int32 + func NewInt32(i int32, valid bool) Int32 + func (i *Int32) Scan(value interface{}) error + func (i *Int32) SetValid(n int32) + func (i *Int32) UnmarshalJSON(data []byte) error + func (i *Int32) UnmarshalText(text []byte) error + func (i Int32) IsSet() bool + func (i Int32) IsValid() bool + func (i Int32) IsZero() bool + func (i Int32) MarshalJSON() ([]byte, error) + func (i Int32) MarshalText() ([]byte, error) + func (i Int32) Ptr() *int32 + func (i Int32) Value() (driver.Value, error) + func (i Int32) ValueOrZero() int32 + type Int64 struct + Int64 int64 + Set bool + Valid bool + func Int64From(i int64) Int64 + func Int64FromPtr(i *int64) Int64 + func NewInt64(i int64, valid bool) Int64 + func (i *Int64) Scan(value interface{}) error + func (i *Int64) SetValid(n int64) + func (i *Int64) UnmarshalJSON(data []byte) error + func (i *Int64) UnmarshalText(text []byte) error + func (i Int64) IsSet() bool + func (i Int64) IsValid() bool + func (i Int64) IsZero() bool + func (i Int64) MarshalJSON() ([]byte, error) + func (i Int64) MarshalText() ([]byte, error) + func (i Int64) Ptr() *int64 + func (i Int64) Value() (driver.Value, error) + func (i Int64) ValueOrZero() int64 + type Int8 struct + Int8 int8 + Set bool + Valid bool + func Int8From(i int8) Int8 + func Int8FromPtr(i *int8) Int8 + func NewInt8(i int8, valid bool) Int8 + func (i *Int8) Scan(value interface{}) error + func (i *Int8) SetValid(n int8) + func (i *Int8) UnmarshalJSON(data []byte) error + func (i *Int8) UnmarshalText(text []byte) error + func (i Int8) IsSet() bool + func (i Int8) IsValid() bool + func (i Int8) IsZero() bool + func (i Int8) MarshalJSON() ([]byte, error) + func (i Int8) MarshalText() ([]byte, error) + func (i Int8) Ptr() *int8 + func (i Int8) Value() (driver.Value, error) + func (i Int8) ValueOrZero() int8 + type JSON struct + JSON []byte + Set bool + Valid bool + func JSONFrom(b []byte) JSON + func JSONFromPtr(b *[]byte) JSON + func NewJSON(b []byte, valid bool) JSON + func (j *JSON) Marshal(obj interface{}) error + func (j *JSON) Scan(value interface{}) error + func (j *JSON) SetValid(n []byte) + func (j *JSON) UnmarshalJSON(data []byte) error + func (j *JSON) UnmarshalText(text []byte) error + func (j JSON) IsSet() bool + func (j JSON) IsValid() bool + func (j JSON) IsZero() bool + func (j JSON) MarshalJSON() ([]byte, error) + func (j JSON) MarshalText() ([]byte, error) + func (j JSON) Ptr() *[]byte + func (j JSON) Unmarshal(dest interface{}) error + func (j JSON) Value() (driver.Value, error) + func (j JSON) ValueOrZero() []byte + type String struct + Set bool + String string + Valid bool + func NewString(s string, valid bool) String + func StringFrom(s string) String + func StringFromPtr(s *string) String + func (s *String) Scan(value interface{}) error + func (s *String) SetValid(v string) + func (s *String) UnmarshalJSON(data []byte) error + func (s *String) UnmarshalText(text []byte) error + func (s String) IsSet() bool + func (s String) IsValid() bool + func (s String) IsZero() bool + func (s String) MarshalJSON() ([]byte, error) + func (s String) MarshalText() ([]byte, error) + func (s String) Ptr() *string + func (s String) Value() (driver.Value, error) + func (s String) ValueOrZero() string + type Time struct + Set bool + Time time.Time + Valid bool + func NewTime(t time.Time, valid bool) Time + func TimeFrom(t time.Time) Time + func TimeFromPtr(t *time.Time) Time + func (t *Time) Scan(value interface{}) error + func (t *Time) SetValid(v time.Time) + func (t *Time) UnmarshalJSON(data []byte) error + func (t *Time) UnmarshalText(text []byte) error + func (t Time) IsSet() bool + func (t Time) IsValid() bool + func (t Time) IsZero() bool + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) MarshalText() ([]byte, error) + func (t Time) Ptr() *time.Time + func (t Time) Value() (driver.Value, error) + func (t Time) ValueOrZero() time.Time + type Uint struct + Set bool + Uint uint + Valid bool + func NewUint(i uint, valid bool) Uint + func UintFrom(i uint) Uint + func UintFromPtr(i *uint) Uint + func (u *Uint) Scan(value interface{}) error + func (u *Uint) SetValid(n uint) + func (u *Uint) UnmarshalJSON(data []byte) error + func (u *Uint) UnmarshalText(text []byte) error + func (u Uint) IsSet() bool + func (u Uint) IsValid() bool + func (u Uint) IsZero() bool + func (u Uint) MarshalJSON() ([]byte, error) + func (u Uint) MarshalText() ([]byte, error) + func (u Uint) Ptr() *uint + func (u Uint) Value() (driver.Value, error) + func (u Uint) ValueOrZero() uint + type Uint16 struct + Set bool + Uint16 uint16 + Valid bool + func NewUint16(i uint16, valid bool) Uint16 + func Uint16From(i uint16) Uint16 + func Uint16FromPtr(i *uint16) Uint16 + func (u *Uint16) Scan(value interface{}) error + func (u *Uint16) SetValid(n uint16) + func (u *Uint16) UnmarshalJSON(data []byte) error + func (u *Uint16) UnmarshalText(text []byte) error + func (u Uint16) IsSet() bool + func (u Uint16) IsValid() bool + func (u Uint16) IsZero() bool + func (u Uint16) MarshalJSON() ([]byte, error) + func (u Uint16) MarshalText() ([]byte, error) + func (u Uint16) Ptr() *uint16 + func (u Uint16) Value() (driver.Value, error) + func (u Uint16) ValueOrZero() uint16 + type Uint32 struct + Set bool + Uint32 uint32 + Valid bool + func NewUint32(i uint32, valid bool) Uint32 + func Uint32From(i uint32) Uint32 + func Uint32FromPtr(i *uint32) Uint32 + func (u *Uint32) Scan(value interface{}) error + func (u *Uint32) SetValid(n uint32) + func (u *Uint32) UnmarshalJSON(data []byte) error + func (u *Uint32) UnmarshalText(text []byte) error + func (u Uint32) IsSet() bool + func (u Uint32) IsValid() bool + func (u Uint32) IsZero() bool + func (u Uint32) MarshalJSON() ([]byte, error) + func (u Uint32) MarshalText() ([]byte, error) + func (u Uint32) Ptr() *uint32 + func (u Uint32) Value() (driver.Value, error) + func (u Uint32) ValueOrZero() uint32 + type Uint64 struct + Set bool + Uint64 uint64 + Valid bool + func NewUint64(i uint64, valid bool) Uint64 + func Uint64From(i uint64) Uint64 + func Uint64FromPtr(i *uint64) Uint64 + func (u *Uint64) Scan(value interface{}) error + func (u *Uint64) SetValid(n uint64) + func (u *Uint64) UnmarshalJSON(data []byte) error + func (u *Uint64) UnmarshalText(text []byte) error + func (u Uint64) IsSet() bool + func (u Uint64) IsValid() bool + func (u Uint64) IsZero() bool + func (u Uint64) MarshalJSON() ([]byte, error) + func (u Uint64) MarshalText() ([]byte, error) + func (u Uint64) Ptr() *uint64 + func (u Uint64) Value() (driver.Value, error) + func (u Uint64) ValueOrZero() uint64 + type Uint8 struct + Set bool + Uint8 uint8 + Valid bool + func NewUint8(i uint8, valid bool) Uint8 + func Uint8From(i uint8) Uint8 + func Uint8FromPtr(i *uint8) Uint8 + func (u *Uint8) Scan(value interface{}) error + func (u *Uint8) SetValid(n uint8) + func (u *Uint8) UnmarshalJSON(data []byte) error + func (u *Uint8) UnmarshalText(text []byte) error + func (u Uint8) IsSet() bool + func (u Uint8) IsValid() bool + func (u Uint8) IsZero() bool + func (u Uint8) MarshalJSON() ([]byte, error) + func (u Uint8) MarshalText() ([]byte, error) + func (u Uint8) Ptr() *uint8 + func (u Uint8) Value() (driver.Value, error) + func (u Uint8) ValueOrZero() uint8 + type Value interface + IsSet func() bool + IsValid func() bool