Documentation
¶
Index ¶
- type Some
- func (o Some[T]) Get() (T, bool)
- func (o Some[T]) IfPresent(callback func(T))
- func (o Some[T]) IsPresent() bool
- func (o Some[T]) MarshalYAML() (any, error)
- func (o Some[T]) OrElse(val T) T
- func (o Some[T]) OrElseFunc(gen func() T) T
- func (o Some[T]) OrPanic(errs ...error) T
- func (o *Some[T]) UnmarshalYAML(value *yaml.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Some ¶
type Some[T any] struct { // contains filtered or unexported fields }
func (Some[T]) MarshalYAML ¶ added in v0.3.75
func (Some[T]) OrElseFunc ¶
func (o Some[T]) OrElseFunc(gen func() T) T
Click to show internal directories.
Click to hide internal directories.