Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result[T, E any] struct { // contains filtered or unexported fields }
Result represents the result of an operation that is successful or not.
func (Result[T, E]) Err ¶
func (r Result[T, E]) Err() E
Err returns the error of the result. To be used after calling IsOK()
Click to show internal directories.
Click to hide internal directories.