mirror of
https://github.com/robotn/gohook.git
synced 2024-11-22 11:36:47 +08:00
update hook example
This commit is contained in:
parent
99f27f122a
commit
5ca3c35c1c
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user