Documentation ¶
Index ¶
- type Try
- func CompleteErr[T any](result T, err error) Try[T]
- func CompleteFn[T comparable](result T, fn func(v T) bool, err error) Try[optioner.Option[T]]
- func CompletePtr[T any](result *T, err error) Try[optioner.Option[T]]
- func CompleteSlice[T any](result []T, err error) Try[optioner.Option[[]T]]
- func CompleteZero[T comparable](result T, err error) Try[optioner.Option[T]]
- func Failure[T any](err error) Try[T]
- func Failuref[T any](format string, a ...any) Try[T]
- func Run[T any](try Try[T], fn func(T) Try[T]) Try[T]
- func Success[T any](result T) Try[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Try ¶
func CompleteErr ¶ added in v1.0.33
func CompleteFn ¶ added in v1.0.33
func CompletePtr ¶ added in v1.0.33
func CompleteSlice ¶ added in v1.0.33
func CompleteZero ¶ added in v1.0.33
func CompleteZero[T comparable](result T, err error) Try[optioner.Option[T]]
Click to show internal directories.
Click to hide internal directories.