Documentation ¶
Index ¶
- type Try
- func Complete[T any](result T, err error) Try[T]
- func CompleteOfFn[T comparable](result T, fn func(v T) bool, err error) Try[optioner.Option[T]]
- func CompleteOfPtr[T any](result *T, err error) Try[optioner.Option[T]]
- func CompleteOfSlice[T any](result []T, err error) Try[optioner.Option[[]T]]
- func CompleteOfZero[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 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 CompleteOfFn ¶ added in v1.0.27
func CompleteOfPtr ¶ added in v1.0.27
func CompleteOfSlice ¶ added in v1.0.27
func CompleteOfZero ¶ added in v1.0.27
func CompleteOfZero[T comparable](result T, err error) Try[optioner.Option[T]]
Click to show internal directories.
Click to hide internal directories.