From 2a5dc199e5c1abeeac06e47572cbe6ef90494f39 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Mon, 7 Sep 2020 10:27:44 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- {example => examples}/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {example => examples}/main.go (97%) 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()