From 77d295730e8e3f73cd7a4352e351d5ad93b59b0c Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Mon, 14 Nov 2022 19:30:13 +0200 Subject: [PATCH] changed the hook func argument to e for more consistent autocomplete --- tools/hook/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hook/hook.go b/tools/hook/hook.go index 090acd15..d2e039eb 100644 --- a/tools/hook/hook.go +++ b/tools/hook/hook.go @@ -8,7 +8,7 @@ import ( var StopPropagation = errors.New("Event hook propagation stopped") // Handler defines a hook handler function. -type Handler[T any] func(data T) error +type Handler[T any] func(e T) error // Hook defines a concurrent safe structure for handling event hooks // (aka. callbacks propagation).