Documentation ¶ Index ¶ Variables func As[A error]() func(error) O.Option[A] func OnError(msg string, args ...any) func(error) error func OnNone(msg string, args ...any) func() error Constants ¶ This section is empty. Variables ¶ View Source var IdentityError = F.Identity[error] Functions ¶ func As ¶ func As[A error]() func(error) O.Option[A] As tries to extract the error of desired type from the given error func OnError ¶ func OnError(msg string, args ...any) func(error) error OnError generates a unary function that produces a formatted error. The argument to that function is the root cause of the error and the message will be augmented with a format string containing %w func OnNone ¶ func OnNone(msg string, args ...any) func() error OnNone generates a nullary function that produces a formatted error Types ¶ This section is empty. Source Files ¶ View all Source files conv.go identity.go messages.go Click to show internal directories. Click to hide internal directories.