Documentation
¶
Overview ¶
Package maybe implements a maybe type, also known as an option(al) type.
We use the "maybe" terminology so as to avoid confusion with the "optional" and "required" types used to represent environment variable values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value[T any] struct { // contains filtered or unexported fields }
Value is an optional value of type T.
func (Value[T]) Get ¶
Get returns the optional value.
If m is empty ok is false; otherwise, ok is true and v is the value.
Click to show internal directories.
Click to hide internal directories.