Documentation
¶
Overview ¶
Package options implements simple functions to manipulate optional values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotPresent = errors.New("value not present") ErrNotOk = errors.New("value not ok") )
Functions ¶
Types ¶
type Option ¶
type Option[T any] struct { // contains filtered or unexported fields }
func FromPointer ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.