cleanup

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

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

Cleanup provides an easy way to clean up resources after an operation fails.

func New added in v0.0.15

func New(
	fns ...func(),
) Cleanup

func (*Cleanup) Add

func (c *Cleanup) Add(fn func())

func (*Cleanup) Cancel

func (c *Cleanup) Cancel()

func (*Cleanup) Cleanup

func (c *Cleanup) Cleanup()

Jump to

Keyboard shortcuts

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