Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result[T any] interface { // Value unwraps the result into a tuple Value() (*T, error) // IsErr returns true if the result represents an error IsErr() bool // IsOk returns true if the result is not an error IsOk() bool }
A Result holds a value or an error.
Click to show internal directories.
Click to hide internal directories.