mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
Update golint
This commit is contained in:
parent
ad90c3d789
commit
75e2be4c33
10
robotgo.go
10
robotgo.go
@ -1,5 +1,7 @@
|
|||||||
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
|
// Copyright 2016 The go-vgo Project Developers.
|
||||||
// file at the top-level directory of this distribution and at
|
|
||||||
|
// All Rights Reserved. See the COPYRIGHT file at
|
||||||
|
// the top-level directory of this distribution and at
|
||||||
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
|
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||||
@ -388,7 +390,7 @@ func KeyToggle(args ...string) {
|
|||||||
camkeyt := C.CString(amkeyt)
|
camkeyt := C.CString(amkeyt)
|
||||||
// defer func() {
|
// defer func() {
|
||||||
str := C.aKeyToggle(ckey, cadown, camkey, camkeyt)
|
str := C.aKeyToggle(ckey, cadown, camkey, camkeyt)
|
||||||
Println(str)
|
fmt.Println(str)
|
||||||
// }()
|
// }()
|
||||||
defer C.free(unsafe.Pointer(ckey))
|
defer C.free(unsafe.Pointer(ckey))
|
||||||
defer C.free(unsafe.Pointer(cadown))
|
defer C.free(unsafe.Pointer(cadown))
|
||||||
@ -477,7 +479,7 @@ func SaveBitmap(args ...interface{}) {
|
|||||||
|
|
||||||
path := C.CString(args[1].(string))
|
path := C.CString(args[1].(string))
|
||||||
savebit := C.aSaveBitmap(args[0].(C.MMBitmapRef), path, mtype)
|
savebit := C.aSaveBitmap(args[0].(C.MMBitmapRef), path, mtype)
|
||||||
Println("saved...", savebit)
|
fmt.Println("saved...", savebit)
|
||||||
// return bit
|
// return bit
|
||||||
// defer C.free(unsafe.Pointer(path))
|
// defer C.free(unsafe.Pointer(path))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user