diff --git a/README.md b/README.md index ff19603..95a3f1c 100644 --- a/README.md +++ b/README.md @@ -223,7 +223,7 @@ func main() { package main import ( - "fmt" + "fmt" "github.com/go-vgo/robotgo" hook "github.com/robotn/gohook" diff --git a/README_zh.md b/README_zh.md index 6a37b66..b1db37c 100644 --- a/README_zh.md +++ b/README_zh.md @@ -220,7 +220,7 @@ func main() { package main import ( - "fmt" + "fmt" "github.com/go-vgo/robotgo" hook "github.com/robotn/gohook" diff --git a/examples/gohook/main.go b/examples/gohook/main.go index 38479aa..ab6c5a5 100644 --- a/examples/gohook/main.go +++ b/examples/gohook/main.go @@ -37,7 +37,7 @@ func addMouse() { fmt.Println("--- Please press left mouse button to see it's position and the right mouse button to exit ---") robotgo.EventHook(hook.MouseDown, []string{}, func(e hook.Event) { if e.Button == hook.MouseMap["left"] { - fmt.Printf("mleft @ %v - %v\n", e.X, e.Y) + fmt.Printf("mouse left @ %v - %v\n", e.X, e.Y) } else if e.Button == hook.MouseMap["right"] { robotgo.EventEnd() }