mirror of
https://github.com/robotn/gohook.git
synced 2025-01-18 21:56:40 +08:00
Update README.md and move code
This commit is contained in:
parent
3df4cff48b
commit
2cc3a5d7ce
20
README.md
20
README.md
@ -1,3 +1,21 @@
|
|||||||
# gohook
|
# gohook
|
||||||
|
|
||||||
This is a work in progress.
|
This is a work in progress.
|
||||||
|
|
||||||
|
```Go
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
|
"go-vgo/robotn/gohook"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
hook.AsyncHook()
|
||||||
|
veve := hook.AddEvent("v")
|
||||||
|
if veve == 0 {
|
||||||
|
fmt.Println("v...")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"go-vgo/robotn/gohook"
|
"go-vgo/robotn/gohook"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user