fn

package
v2.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncList

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

Slice of functions to be executed after each other

func (*FuncList) AddFunc

func (c *FuncList) AddFunc(f func())

Add a function to be called by the Execute method.

func (*FuncList) Execute

func (c *FuncList) Execute()

Execute all added functions

func (*FuncList) ToFunction

func (c *FuncList) ToFunction() func()

Return a function that executions all added functions

Functions are executed in reverse order they were added.

Jump to

Keyboard shortcuts

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