cleanup

package
v0.0.1-beta4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 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 (*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