mirror of
https://github.com/robotn/gohook.git
synced 2025-04-12 21:58:57 +08:00
replace all import and gofmt code
This commit is contained in:
parent
f0ddfd620c
commit
43543e0cff
16
README.md
16
README.md
@ -1,20 +1,18 @@
|
|||||||
# gohook
|
# gohook
|
||||||
|
|
||||||
[](https://circleci.com/gh/cauefcr/gohook)
|
[](https://circleci.com/gh/robotn/gohook)
|
||||||

|

|
||||||
[](https://goreportcard.com/report/github.com/cauefcr/gohook)
|
[](https://goreportcard.com/report/github.com/robotn/gohook)
|
||||||
[](https://godoc.org/github.com/cauefcr/gohook)
|
[](https://godoc.org/github.com/robotn/gohook)
|
||||||
<!-- This is a work in progress. -->
|
<!-- This is a work in progress. -->
|
||||||
|
|
||||||
Based on [libuiohook](https://github.com/kwhat/libuiohook)
|
|
||||||
|
|
||||||
```Go
|
```Go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
//"github.com/robotn/gohook"
|
|
||||||
"github.com/cauefcr/gohook"
|
"github.com/robotn/gohook"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -25,3 +23,5 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Based on [libuiohook](https://github.com/kwhat/libuiohook).
|
2
go.mod
2
go.mod
@ -1 +1 @@
|
|||||||
module github.com/cauefcr/gohook
|
module github.com/robotn/gohook
|
||||||
|
5
hook.go
5
hook.go
@ -151,3 +151,8 @@ func AddEvent(key string) int {
|
|||||||
|
|
||||||
return geve
|
return geve
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// StopEvent stop event listener
|
||||||
|
func StopEvent() {
|
||||||
|
C.stop_event()
|
||||||
|
}
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cauefcr/gohook"
|
"github.com/robotn/gohook"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user