xdefer

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Defers

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

Defers wrap defer func

func New

func New() *Defers

New return a Defers pointer

func (*Defers) Add

func (d *Defers) Add(fns ...func() error)

Add add a func to Defers

func (*Defers) Close

func (d *Defers) Close()

Close close defer funcs in Defers

Jump to

Keyboard shortcuts

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