From 385ae55c6005bcfbdb4733730c30073c6135f9ec Mon Sep 17 00:00:00 2001 From: Glen Baker Date: Sun, 15 Jan 2017 17:54:39 -0500 Subject: [PATCH] Readme example code cleanup Cleaned up the example code, removed unnecessary commented out imports and added some spaces to keep consistent. --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 032df2e..f97a429 100644 --- a/README.md +++ b/README.md @@ -91,14 +91,12 @@ sudo apt-get install libxkbcommon-dev package main import ( - //. "fmt" - "github.com/go-vgo/robotgo" ) func main() { robotgo.ScrollMouse(10, "up") - robotgo.MouseClick("left",true) + robotgo.MouseClick("left", true) robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0) } ``` @@ -109,8 +107,6 @@ func main() { package main import ( - //. "fmt" - "github.com/go-vgo/robotgo" ) @@ -207,7 +203,7 @@ func main() { Println("ok@@@", "ok") } - title:=robotgo.GetTitle() + title := robotgo.GetTitle() Println("title@@@", title) } ```