package
3.0.0+incompatible
Repository: https://github.com/donutloop/toolkit.git
Documentation: pkg.go.dev

# README

Usage

Hooks holds a list of functions (func error) to call whenever the set is triggered.

Example

package main 

import (
	"github.com/donutloop/toolkit/event"
)

func main() {
    hooks := new(event.Hooks)
    hooks.Add(func() { 
    	// do things
    })
    hooks.Add(func() { 
        // do things 
    })
    hooks.Fire()
}