Versions in this module Expand all Collapse all v0 v0.0.2 Oct 22, 2019 Changes in this version + func AddAction(tag string, action Action, priority int) bool + func AddFilter(tag string, filter Filter, priority int) bool + func ApplyFilter(tag string, data interface{}, params ...interface{}) (interface{}, error) + func DoAction(tag string, params ...interface{}) + func HasAction(tag string, action Action) ([]int, bool) + func HasFilter(tag string, filter Filter) ([]int, bool) + func RemoveAction(tag string, action Action, priority int) bool + func RemoveAllAction(tag string, priority int) bool + func RemoveAllFilter(tag string, priority int) bool + func RemoveFilter(tag string, filter Filter, priority int) bool v0.0.1 Oct 19, 2019 Changes in this version + const AllPriority + const DefaultPriority + func Instance() *hooks + func NewInstance() *hooks + type Action func(...interface{}) + type Filter func(interface{}, ...interface{}) (interface{}, error)