mirror of
https://github.com/robotn/gohook.git
synced 2024-11-25 05:46:52 +08:00
update go hook example docs
This commit is contained in:
parent
221bcb3991
commit
4f5b3ead12
@ -3,9 +3,10 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/robotn/gohook"
|
||||
hook "github.com/robotn/gohook"
|
||||
)
|
||||
|
||||
// hook listen and return values using detailed examples
|
||||
func add() {
|
||||
s := hook.Start()
|
||||
defer hook.End()
|
||||
@ -24,6 +25,7 @@ func add() {
|
||||
}
|
||||
}
|
||||
|
||||
// base hook example
|
||||
func base() {
|
||||
EvChan := hook.Start()
|
||||
defer hook.End()
|
||||
|
Loading…
Reference in New Issue
Block a user