cleanup

package
v0.0.0-...-7ae29b8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MPL-2.0 Imports: 2 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 interface {
	Append(CleanupFn)  // registers a cleanup function to run after general stack
	Prepend(CleanupFn) // registers a cleanup function to run before general stack
	Do(CleanupFn)      // registers a cleanup function to run in the general stack
	Close() error      // executes registered cleanup functions
}

Cleanup is an interface for registering cleanup functions

func New

func New() Cleanup

Create a new cleanup instance

type CleanupFn

type CleanupFn func() error

Jump to

Keyboard shortcuts

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