Readme example code cleanup

Cleaned up the example code, removed unnecessary commented out imports and added some spaces to keep consistent.
This commit is contained in:
Glen Baker 2017-01-15 17:54:39 -05:00 committed by GitHub
parent 8703590fda
commit 385ae55c60

View File

@ -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)
}
```