package
Version:
v0.0.0-...-8b02fee
Opens a new window with list of versions in this module.
Published: Jun 7, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package maybe provides support for working with optional values.
type Maybe[V any] struct {
}
A Maybe[V] represents an optional value of type V. The zero value for Maybe[V]
is considered a "missing" value.
Create a new, non-empty Maybe with value 'value'.
Get the underlying value, if any. ok is true iff the value was present.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.