Documentation ¶
Index ¶
- type Option
- func (opt Option[V]) Get() (V, bool)
- func (opt Option[V]) GetOrElse(v V) V
- func (opt Option[V]) GetOrFunc(f func() (V, error)) (V, error)
- func (opt Option[V]) GetOrNil() *V
- func (opt Option[V]) GetOrZero() V
- func (opt Option[V]) IsDefined() bool
- func (opt Option[V]) IsEmpty() bool
- func (opt Option[V]) Iter() iter.Iter[V]
- func (opt Option[V]) Len() int
- func (opt Option[V]) MustGetOrFunc(f func() (V, error)) V
- func (opt Option[V]) Slice() []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.