Documentation
¶
Index ¶
- type Bool
- func (o Bool) Else(elseValue bool) (value bool)
- func (o Bool) ElseFunc(f func() bool) (value bool)
- func (o Bool) Get() (value bool, ok bool)
- func (c Bool) GormDataType() string
- func (o Bool) If(f func(value bool))
- func (o Bool) IsBlank() bool
- func (o Bool) IsNil() bool
- func (o Bool) IsPresent() bool
- func (o Bool) MarshalJSON() (data []byte, err error)
- func (o *Bool) MarshalText() ([]byte, error)
- func (o Bool) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Bool) Scan(input interface{}) (err error)
- func (o Bool) String() string
- func (o *Bool) UnmarshalJSON(data []byte) error
- func (o *Bool) UnmarshalText(data []byte) error
- func (o *Bool) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Bool) V() (value bool)
- func (c Bool) Value() (driver.Value, error)
- type Byte
- func (o Byte) Else(elseValue byte) (value byte)
- func (o Byte) ElseFunc(f func() byte) (value byte)
- func (o Byte) Get() (value byte, ok bool)
- func (c Byte) GormDataType() string
- func (o Byte) If(f func(value byte))
- func (o Byte) IsBlank() bool
- func (o Byte) IsNil() bool
- func (o Byte) IsPresent() bool
- func (o Byte) MarshalJSON() (data []byte, err error)
- func (o *Byte) MarshalText() ([]byte, error)
- func (o Byte) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Byte) Scan(input interface{}) (err error)
- func (o Byte) String() string
- func (o *Byte) UnmarshalJSON(data []byte) error
- func (o *Byte) UnmarshalText(data []byte) error
- func (o *Byte) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Byte) V() (value byte)
- func (c Byte) Value() (driver.Value, error)
- type Float32
- func (o Float32) Else(elseValue float32) (value float32)
- func (o Float32) ElseFunc(f func() float32) (value float32)
- func (o Float32) Get() (value float32, ok bool)
- func (c Float32) GormDataType() string
- func (o Float32) If(f func(value float32))
- func (o Float32) IsBlank() bool
- func (o Float32) IsNil() bool
- func (o Float32) IsPresent() bool
- func (o Float32) MarshalJSON() (data []byte, err error)
- func (o *Float32) MarshalText() ([]byte, error)
- func (o Float32) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Float32) Scan(input interface{}) (err error)
- func (o Float32) String() string
- func (o *Float32) UnmarshalJSON(data []byte) error
- func (o *Float32) UnmarshalText(data []byte) error
- func (o *Float32) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Float32) V() (value float32)
- func (c Float32) Value() (driver.Value, error)
- type Float64
- func (o Float64) Else(elseValue float64) (value float64)
- func (o Float64) ElseFunc(f func() float64) (value float64)
- func (o Float64) Get() (value float64, ok bool)
- func (c Float64) GormDataType() string
- func (o Float64) If(f func(value float64))
- func (o Float64) IsBlank() bool
- func (o Float64) IsNil() bool
- func (o Float64) IsPresent() bool
- func (o Float64) MarshalJSON() (data []byte, err error)
- func (o *Float64) MarshalText() ([]byte, error)
- func (o Float64) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Float64) Scan(input interface{}) (err error)
- func (o Float64) String() string
- func (o *Float64) UnmarshalJSON(data []byte) error
- func (o *Float64) UnmarshalText(data []byte) error
- func (o *Float64) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Float64) V() (value float64)
- func (c Float64) Value() (driver.Value, error)
- type Int
- func (o Int) Else(elseValue int) (value int)
- func (o Int) ElseFunc(f func() int) (value int)
- func (o Int) Get() (value int, ok bool)
- func (c Int) GormDataType() string
- func (o Int) If(f func(value int))
- func (o Int) IsBlank() bool
- func (o Int) IsNil() bool
- func (o Int) IsPresent() bool
- func (o Int) MarshalJSON() (data []byte, err error)
- func (o *Int) MarshalText() ([]byte, error)
- func (o Int) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Int) Scan(input interface{}) (err error)
- func (o Int) String() string
- func (o *Int) UnmarshalJSON(data []byte) error
- func (o *Int) UnmarshalText(data []byte) error
- func (o *Int) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Int) V() (value int)
- func (c Int) Value() (driver.Value, error)
- type Int16
- func (o Int16) Else(elseValue int16) (value int16)
- func (o Int16) ElseFunc(f func() int16) (value int16)
- func (o Int16) Get() (value int16, ok bool)
- func (c Int16) GormDataType() string
- func (o Int16) If(f func(value int16))
- func (o Int16) IsBlank() bool
- func (o Int16) IsNil() bool
- func (o Int16) IsPresent() bool
- func (o Int16) MarshalJSON() (data []byte, err error)
- func (o *Int16) MarshalText() ([]byte, error)
- func (o Int16) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Int16) Scan(input interface{}) (err error)
- func (o Int16) String() string
- func (o *Int16) UnmarshalJSON(data []byte) error
- func (o *Int16) UnmarshalText(data []byte) error
- func (o *Int16) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Int16) V() (value int16)
- func (c Int16) Value() (driver.Value, error)
- type Int32
- func (o Int32) Else(elseValue int32) (value int32)
- func (o Int32) ElseFunc(f func() int32) (value int32)
- func (o Int32) Get() (value int32, ok bool)
- func (c Int32) GormDataType() string
- func (o Int32) If(f func(value int32))
- func (o Int32) IsBlank() bool
- func (o Int32) IsNil() bool
- func (o Int32) IsPresent() bool
- func (o Int32) MarshalJSON() (data []byte, err error)
- func (o *Int32) MarshalText() ([]byte, error)
- func (o Int32) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Int32) Scan(input interface{}) (err error)
- func (o Int32) String() string
- func (o *Int32) UnmarshalJSON(data []byte) error
- func (o *Int32) UnmarshalText(data []byte) error
- func (o *Int32) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Int32) V() (value int32)
- func (c Int32) Value() (driver.Value, error)
- type Int64
- func (o Int64) Else(elseValue int64) (value int64)
- func (o Int64) ElseFunc(f func() int64) (value int64)
- func (o Int64) Get() (value int64, ok bool)
- func (c Int64) GormDataType() string
- func (o Int64) If(f func(value int64))
- func (o Int64) IsBlank() bool
- func (o Int64) IsNil() bool
- func (o Int64) IsPresent() bool
- func (o Int64) MarshalJSON() (data []byte, err error)
- func (o *Int64) MarshalText() ([]byte, error)
- func (o Int64) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Int64) Scan(input interface{}) (err error)
- func (o Int64) String() string
- func (o *Int64) UnmarshalJSON(data []byte) error
- func (o *Int64) UnmarshalText(data []byte) error
- func (o *Int64) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Int64) V() (value int64)
- func (c Int64) Value() (driver.Value, error)
- type Int8
- func (o Int8) Else(elseValue int8) (value int8)
- func (o Int8) ElseFunc(f func() int8) (value int8)
- func (o Int8) Get() (value int8, ok bool)
- func (c Int8) GormDataType() string
- func (o Int8) If(f func(value int8))
- func (o Int8) IsBlank() bool
- func (o Int8) IsNil() bool
- func (o Int8) IsPresent() bool
- func (o Int8) MarshalJSON() (data []byte, err error)
- func (o *Int8) MarshalText() ([]byte, error)
- func (o Int8) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Int8) Scan(input interface{}) (err error)
- func (o Int8) String() string
- func (o *Int8) UnmarshalJSON(data []byte) error
- func (o *Int8) UnmarshalText(data []byte) error
- func (o *Int8) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Int8) V() (value int8)
- func (c Int8) Value() (driver.Value, error)
- type String
- func (o String) Else(elseValue string) (value string)
- func (o String) ElseFunc(f func() string) (value string)
- func (o String) Get() (value string, ok bool)
- func (c String) GormDataType() string
- func (o String) If(f func(value string))
- func (o String) IsBlank() bool
- func (o String) IsNil() bool
- func (o String) IsPresent() bool
- func (o String) MarshalJSON() (data []byte, err error)
- func (o *String) MarshalText() ([]byte, error)
- func (o String) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *String) Scan(input interface{}) (err error)
- func (o String) String() string
- func (o *String) UnmarshalJSON(data []byte) error
- func (o *String) UnmarshalText(data []byte) error
- func (o *String) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o String) V() (value string)
- func (c String) Value() (driver.Value, error)
- type Uint
- func (o Uint) Else(elseValue uint) (value uint)
- func (o Uint) ElseFunc(f func() uint) (value uint)
- func (o Uint) Get() (value uint, ok bool)
- func (c Uint) GormDataType() string
- func (o Uint) If(f func(value uint))
- func (o Uint) IsBlank() bool
- func (o Uint) IsNil() bool
- func (o Uint) IsPresent() bool
- func (o Uint) MarshalJSON() (data []byte, err error)
- func (o *Uint) MarshalText() ([]byte, error)
- func (o Uint) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Uint) Scan(input interface{}) (err error)
- func (o Uint) String() string
- func (o *Uint) UnmarshalJSON(data []byte) error
- func (o *Uint) UnmarshalText(data []byte) error
- func (o *Uint) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Uint) V() (value uint)
- func (c Uint) Value() (driver.Value, error)
- type Uint16
- func (o Uint16) Else(elseValue uint16) (value uint16)
- func (o Uint16) ElseFunc(f func() uint16) (value uint16)
- func (o Uint16) Get() (value uint16, ok bool)
- func (c Uint16) GormDataType() string
- func (o Uint16) If(f func(value uint16))
- func (o Uint16) IsBlank() bool
- func (o Uint16) IsNil() bool
- func (o Uint16) IsPresent() bool
- func (o Uint16) MarshalJSON() (data []byte, err error)
- func (o *Uint16) MarshalText() ([]byte, error)
- func (o Uint16) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Uint16) Scan(input interface{}) (err error)
- func (o Uint16) String() string
- func (o *Uint16) UnmarshalJSON(data []byte) error
- func (o *Uint16) UnmarshalText(data []byte) error
- func (o *Uint16) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Uint16) V() (value uint16)
- func (c Uint16) Value() (driver.Value, error)
- type Uint32
- func (o Uint32) Else(elseValue uint32) (value uint32)
- func (o Uint32) ElseFunc(f func() uint32) (value uint32)
- func (o Uint32) Get() (value uint32, ok bool)
- func (c Uint32) GormDataType() string
- func (o Uint32) If(f func(value uint32))
- func (o Uint32) IsBlank() bool
- func (o Uint32) IsNil() bool
- func (o Uint32) IsPresent() bool
- func (o Uint32) MarshalJSON() (data []byte, err error)
- func (o *Uint32) MarshalText() ([]byte, error)
- func (o Uint32) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Uint32) Scan(input interface{}) (err error)
- func (o Uint32) String() string
- func (o *Uint32) UnmarshalJSON(data []byte) error
- func (o *Uint32) UnmarshalText(data []byte) error
- func (o *Uint32) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Uint32) V() (value uint32)
- func (c Uint32) Value() (driver.Value, error)
- type Uint64
- func (o Uint64) Else(elseValue uint64) (value uint64)
- func (o Uint64) ElseFunc(f func() uint64) (value uint64)
- func (o Uint64) Get() (value uint64, ok bool)
- func (c Uint64) GormDataType() string
- func (o Uint64) If(f func(value uint64))
- func (o Uint64) IsBlank() bool
- func (o Uint64) IsNil() bool
- func (o Uint64) IsPresent() bool
- func (o Uint64) MarshalJSON() (data []byte, err error)
- func (o *Uint64) MarshalText() ([]byte, error)
- func (o Uint64) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Uint64) Scan(input interface{}) (err error)
- func (o Uint64) String() string
- func (o *Uint64) UnmarshalJSON(data []byte) error
- func (o *Uint64) UnmarshalText(data []byte) error
- func (o *Uint64) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Uint64) V() (value uint64)
- func (c Uint64) Value() (driver.Value, error)
- type Uint8
- func (o Uint8) Else(elseValue uint8) (value uint8)
- func (o Uint8) ElseFunc(f func() uint8) (value uint8)
- func (o Uint8) Get() (value uint8, ok bool)
- func (c Uint8) GormDataType() string
- func (o Uint8) If(f func(value uint8))
- func (o Uint8) IsBlank() bool
- func (o Uint8) IsNil() bool
- func (o Uint8) IsPresent() bool
- func (o Uint8) MarshalJSON() (data []byte, err error)
- func (o *Uint8) MarshalText() ([]byte, error)
- func (o Uint8) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Uint8) Scan(input interface{}) (err error)
- func (o Uint8) String() string
- func (o *Uint8) UnmarshalJSON(data []byte) error
- func (o *Uint8) UnmarshalText(data []byte) error
- func (o *Uint8) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Uint8) V() (value uint8)
- func (c Uint8) Value() (driver.Value, error)
- type Uintptr
- func (o Uintptr) Else(elseValue uintptr) (value uintptr)
- func (o Uintptr) ElseFunc(f func() uintptr) (value uintptr)
- func (o Uintptr) Get() (value uintptr, ok bool)
- func (c Uintptr) GormDataType() string
- func (o Uintptr) If(f func(value uintptr))
- func (o Uintptr) IsBlank() bool
- func (o Uintptr) IsNil() bool
- func (o Uintptr) IsPresent() bool
- func (o Uintptr) MarshalJSON() (data []byte, err error)
- func (o *Uintptr) MarshalText() ([]byte, error)
- func (o Uintptr) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (c *Uintptr) Scan(input interface{}) (err error)
- func (o Uintptr) String() string
- func (o *Uintptr) UnmarshalJSON(data []byte) error
- func (o *Uintptr) UnmarshalText(data []byte) error
- func (o *Uintptr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (o Uintptr) V() (value uintptr)
- func (c Uintptr) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool optionalBool
func (Bool) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Bool) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Bool) GormDataType ¶
func (Bool) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Bool) MarshalText ¶
func (Bool) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Bool) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Bool) UnmarshalText ¶
func (*Bool) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Byte ¶
type Byte optionalByte
func (Byte) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Byte) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Byte) GormDataType ¶
func (Byte) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Byte) MarshalText ¶
func (Byte) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Byte) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Byte) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Byte) UnmarshalText ¶
func (*Byte) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Float32 ¶
type Float32 optionalFloat32
func OfFloat32Ptr ¶
func (Float32) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Float32) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Float32) GormDataType ¶
func (Float32) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Float32) MarshalText ¶
func (Float32) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Float32) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Float32) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Float32) UnmarshalText ¶
func (*Float32) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Float64 ¶
type Float64 optionalFloat64
func OfFloat64Ptr ¶
func (Float64) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Float64) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Float64) GormDataType ¶
func (Float64) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Float64) MarshalText ¶
func (Float64) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Float64) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Float64) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Float64) UnmarshalText ¶
func (*Float64) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Int ¶
type Int optionalInt
func (Int) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Int) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Int) GormDataType ¶
func (Int) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Int) MarshalText ¶
func (Int) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Int) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Int) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Int) UnmarshalText ¶
func (*Int) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Int16 ¶
type Int16 optionalInt16
func OfInt16Ptr ¶
func (Int16) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Int16) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Int16) GormDataType ¶
func (Int16) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Int16) MarshalText ¶
func (Int16) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Int16) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Int16) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Int16) UnmarshalText ¶
func (*Int16) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Int32 ¶
type Int32 optionalInt32
func OfInt32Ptr ¶
func (Int32) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Int32) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Int32) GormDataType ¶
func (Int32) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Int32) MarshalText ¶
func (Int32) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Int32) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Int32) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Int32) UnmarshalText ¶
func (*Int32) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Int64 ¶
type Int64 optionalInt64
func OfInt64Ptr ¶
func (Int64) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Int64) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Int64) GormDataType ¶
func (Int64) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Int64) MarshalText ¶
func (Int64) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Int64) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Int64) UnmarshalText ¶
func (*Int64) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Int8 ¶
type Int8 optionalInt8
func (Int8) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Int8) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Int8) GormDataType ¶
func (Int8) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Int8) MarshalText ¶
func (Int8) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Int8) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Int8) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Int8) UnmarshalText ¶
func (*Int8) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type String ¶
type String optionalString
func OfStringPtr ¶
func (String) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (String) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (String) GormDataType ¶
func (String) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*String) MarshalText ¶
func (String) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (String) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*String) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*String) UnmarshalText ¶
func (*String) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Uint ¶
type Uint optionalUint
func (Uint) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Uint) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Uint) GormDataType ¶
func (Uint) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Uint) MarshalText ¶
func (Uint) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Uint) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Uint) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Uint) UnmarshalText ¶
func (*Uint) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Uint16 ¶
type Uint16 optionalUint16
func OfUint16Ptr ¶
func (Uint16) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Uint16) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Uint16) GormDataType ¶
func (Uint16) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Uint16) MarshalText ¶
func (Uint16) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Uint16) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Uint16) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Uint16) UnmarshalText ¶
func (*Uint16) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Uint32 ¶
type Uint32 optionalUint32
func OfUint32Ptr ¶
func (Uint32) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Uint32) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Uint32) GormDataType ¶
func (Uint32) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Uint32) MarshalText ¶
func (Uint32) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Uint32) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Uint32) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Uint32) UnmarshalText ¶
func (*Uint32) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Uint64 ¶
type Uint64 optionalUint64
func OfUint64Ptr ¶
func (Uint64) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Uint64) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Uint64) GormDataType ¶
func (Uint64) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Uint64) MarshalText ¶
func (Uint64) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Uint64) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Uint64) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Uint64) UnmarshalText ¶
func (*Uint64) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Uint8 ¶
type Uint8 optionalUint8
func OfUint8Ptr ¶
func (Uint8) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Uint8) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Uint8) GormDataType ¶
func (Uint8) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Uint8) MarshalText ¶
func (Uint8) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Uint8) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Uint8) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Uint8) UnmarshalText ¶
func (*Uint8) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
type Uintptr ¶
type Uintptr optionalUintptr
func OfUintptrPtr ¶
func (Uintptr) Else ¶
Else returns the value wrapped by this optional, or the value passed in if there is no value wrapped by this optional.
func (Uintptr) Get ¶
Get returns the value wrapped by this optional, and an ok signal for whether a value was wrapped.
func (Uintptr) GormDataType ¶
func (Uintptr) MarshalJSON ¶
MarshalJSON marshals the value being wrapped to JSON. If there is no vale being wrapped, the zero value of its type is marshaled.
func (*Uintptr) MarshalText ¶
func (Uintptr) MarshalXML ¶
MarshalXML marshals the value being wrapped to XML. If there is no vale being wrapped, the zero value of its type is marshaled.
func (Uintptr) String ¶
String returns the string representation of the wrapped value, or the string representation of the zero value of the type wrapped if there is no value wrapped by this optional.
func (*Uintptr) UnmarshalJSON ¶
UnmarshalJSON unmarshals the JSON into a value wrapped by this optional.
func (*Uintptr) UnmarshalText ¶
func (*Uintptr) UnmarshalXML ¶
UnmarshalXML unmarshals the XML into a value wrapped by this optional.
Source Files
¶
- optional_Bool.go
- optional_Byte.go
- optional_Float32.go
- optional_Float64.go
- optional_Int.go
- optional_Int16.go
- optional_Int32.go
- optional_Int64.go
- optional_Int8.go
- optional_String.go
- optional_Uint.go
- optional_Uint16.go
- optional_Uint32.go
- optional_Uint64.go
- optional_Uint8.go
- optional_Uintptr.go
- types.go