Update golint

This commit is contained in:
vCaesar 2016-12-10 23:14:56 +08:00
parent 0a3df7f68a
commit d6844e1009
2 changed files with 8 additions and 8 deletions

View File

@ -522,9 +522,9 @@ func Convert(args ...interface{}) {
//C.CString() //C.CString()
opath := args[0].(string) opath := args[0].(string)
spath := args[1].(string) spath := args[1].(string)
bit_map := OpenBitmap(opath) bitmap := OpenBitmap(opath)
// Println("a----", bit_map) // Println("a----", bit_map)
SaveBitmap(bit_map, spath, mtype) SaveBitmap(bitmap, spath, mtype)
} }
/* /*

View File

@ -47,16 +47,16 @@ func aRobotgo() {
// robotgo.KeyToggle("enter", "down") // robotgo.KeyToggle("enter", "down")
robotgo.TypeString("en") robotgo.TypeString("en")
abit_map := robotgo.CaptureScreen() abitmap := robotgo.CaptureScreen()
Println("all...", abit_map) Println("all...", abitmap)
bit_map := robotgo.CaptureScreen(10, 20, 30, 40) bitmap := robotgo.CaptureScreen(10, 20, 30, 40)
Println("...", bit_map) Println("...", bitmap)
fx, fy := robotgo.FindBitmap(bit_map) fx, fy := robotgo.FindBitmap(bitmap)
Println("FindBitmap------", fx, fy) Println("FindBitmap------", fx, fy)
robotgo.SaveBitmap(bit_map, "test.png", 1) robotgo.SaveBitmap(bitmap, "test.png", 1)
// robotgo.MouseClick() // robotgo.MouseClick()
robotgo.ScrollMouse(10, "up") robotgo.ScrollMouse(10, "up")