undo

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError

func FormatError(operationDescription string, fnErr error, undoErrs []error) error

Types

type Step

type Step func() error

type Steps

type Steps struct {
	// contains filtered or unexported fields
}

func NewSteps

func NewSteps() Steps

func (*Steps) Add

func (s *Steps) Add(step Step)

func (*Steps) Undo

func (s *Steps) Undo() []error

Jump to

Keyboard shortcuts

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