diff --git a/hook.go b/hook.go index 217d9bb..0613cb0 100644 --- a/hook.go +++ b/hook.go @@ -12,7 +12,7 @@ package hook /* #cgo darwin CFLAGS: -x objective-c -Wno-deprecated-declarations -#cgo darwin LDFLAGS: -framework Cocoa +#cgo darwin LDFLAGS: -framework Cocoa #cgo linux CFLAGS:-I/usr/src #cgo linux LDFLAGS: -L/usr/src -lX11 -lXtst @@ -24,7 +24,7 @@ package hook */ import "C" -import( +import ( // "fmt" "unsafe" ) @@ -33,7 +33,7 @@ import( func AddEvent(key string) int { cs := C.CString(key) defer C.free(unsafe.Pointer(cs)) - + eve := C.add_event(cs) geve := int(eve) @@ -43,4 +43,4 @@ func AddEvent(key string) int { // StopEvent stop event listener func StopEvent() { C.stop_event() -} \ No newline at end of file +}