stack

package
v3.1.22 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean()

Clean 清除

func Register

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

Register 注册一个defer函数

Types

type DeferStack

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

DeferStack ...

func NewStack

func NewStack() *DeferStack

NewStack ...

func (*DeferStack) Clean

func (ds *DeferStack) Clean()

Clean ...

func (*DeferStack) Push

func (ds *DeferStack) Push(fns ...func() error)

Push ...

Jump to

Keyboard shortcuts

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