diff --git a/README.md b/README.md index d6c37ad..52d91c4 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ package main import ( "fmt" - "github.com/robotn/gohook" + hook "github.com/robotn/gohook" ) func main() { diff --git a/example/main.go b/examples/main.go similarity index 97% rename from example/main.go rename to examples/main.go index 89ff892..367cf0a 100644 --- a/example/main.go +++ b/examples/main.go @@ -15,7 +15,7 @@ func addEvent() { fmt.Println("--- Please press w---") hook.Register(hook.KeyDown, []string{"w"}, func(e hook.Event) { - fmt.Println("w") + fmt.Println("w-") }) s := hook.Start()