mirror of
https://github.com/robotn/gohook.git
synced 2025-04-28 22:04:27 +08:00
25 lines
723 B
Markdown
25 lines
723 B
Markdown
# gohook
|
|
|
|
[](https://circleci.com/gh/cauefcr/gohook)
|
|

|
|
[](https://goreportcard.com/report/github.com/cauefcr/gohook)
|
|
[](https://godoc.org/github.com/cauefcr/gohook)
|
|
<!-- This is a work in progress. -->
|
|
|
|
```Go
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
//"github.com/robotn/gohook"
|
|
"github.com/cauefcr/gohook"
|
|
)
|
|
|
|
func main() {
|
|
EvChan := hook.Start()
|
|
defer hook.End()
|
|
for ev := range EvChan {
|
|
fmt.Println(ev)
|
|
}
|
|
}
|
|
``` |