update hook example

This commit is contained in:
vcaesar 2019-10-31 11:08:50 -04:00
parent 99f27f122a
commit 5ca3c35c1c

View File

@ -27,10 +27,10 @@ func add() {
// base hook example
func base() {
EvChan := hook.Start()
evChan := hook.Start()
defer hook.End()
for ev := range EvChan {
for ev := range evChan {
fmt.Println("hook: ", ev)
}
}