defers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Done

func Done()

Clean 清除

func Register

func Register(fns ...func() error)

Register 注册一个defer函数

Types

type Defer

type Defer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewDefer

func NewDefer() *Defer

func (*Defer) Done

func (d *Defer) Done()

func (*Defer) Register

func (d *Defer) Register(fns ...func() error)

Jump to

Keyboard shortcuts

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