Versions in this module Expand all Collapse all v0 v0.1.0 Apr 16, 2021 Changes in this version + type Optional optional + func Empty() Optional + func Of(value T) Optional + func OfOptionalPtr(ptr *T) Optional + func (o *Optional) UnmarshalJSON(data []byte) error + func (o *Optional) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (o Optional) Else(elseValue T) (value T) + func (o Optional) ElseFunc(f func() T) (value T) + func (o Optional) ElseZero() (value T) + func (o Optional) Get() (value T, ok bool) + func (o Optional) If(f func(value T)) + func (o Optional) IsPresent() bool + func (o Optional) MarshalJSON() (data []byte, err error) + func (o Optional) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (o Optional) String() string + type T string