Documentation ¶ Index ¶ type Try func Complete[T any](result T, err error) Try[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] func (t Try[T]) Error() string func (t Try[T]) Failed() bool func (t Try[T]) Succeeded() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Try ¶ type Try[T any] struct { Result T `json:"result"` Err error `json:"error"` } func Complete ¶ func Complete[T any](result T, err error) Try[T] func Failure ¶ func Failure[T any](err error) Try[T] func Failuref ¶ func Failuref[T any](format string, a ...any) Try[T] func Success ¶ func Success[T any](result T) Try[T] func (Try[T]) Error ¶ func (t Try[T]) Error() string func (Try[T]) Failed ¶ func (t Try[T]) Failed() bool func (Try[T]) Succeeded ¶ func (t Try[T]) Succeeded() bool Source Files ¶ View all Source files constructors.go trier.go Click to show internal directories. Click to hide internal directories.