Help us shape the future of Go! Take the 2026 Go Developer Survey

mutation

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unknown

func Unknown(err error) error

Types

type Error

type Error struct {
	Outcome Outcome
	Err     error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type Outcome

type Outcome string
const (
	OutcomeCommitted    Outcome = "committed"
	OutcomeNotCommitted Outcome = "not_committed"
	OutcomeUnknown      Outcome = "unknown"
)

func Explicit

func Explicit(err error) (Outcome, bool)

func ForError

func ForError(err error) Outcome

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL