Update README.md

This commit is contained in:
vcaesar 2020-09-07 10:27:44 -04:00
parent 80a5bf3c7e
commit 2a5dc199e5
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ package main
import ( import (
"fmt" "fmt"
"github.com/robotn/gohook" hook "github.com/robotn/gohook"
) )
func main() { func main() {

View File

@ -15,7 +15,7 @@ func addEvent() {
fmt.Println("--- Please press w---") fmt.Println("--- Please press w---")
hook.Register(hook.KeyDown, []string{"w"}, func(e hook.Event) { hook.Register(hook.KeyDown, []string{"w"}, func(e hook.Event) {
fmt.Println("w") fmt.Println("w-")
}) })
s := hook.Start() s := hook.Start()