Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option[A any] interface{}
Represents optional values. Instances of Option are either an instance of Some or a type-safe empty structure None. The most idiomatic way to use an Option instance is to treat it as a collection or monad and use Map or FlatMap. If None is returned from any operation in the chain, the entire expression results in None[T]. This allows for sophisticated chaining of Option values without having to check for the existence of a value.
Click to show internal directories.
Click to hide internal directories.