mirror of
https://github.com/robotn/gohook.git
synced 2025-04-28 21:17:37 +08:00
25 lines
687 B
Markdown
25 lines
687 B
Markdown
# gohook
|
|
|
|
[](https://circleci.com/gh/robotn/gohook)
|
|

|
|
[](https://goreportcard.com/report/github.com/robotn/gohook)
|
|
[](https://godoc.org/github.com/robotn/gohook)
|
|
<!-- This is a work in progress. -->
|
|
|
|
```Go
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/robotn/gohook"
|
|
)
|
|
|
|
func main() {
|
|
// hook.AsyncHook()
|
|
veve := hook.AddEvent("v")
|
|
if veve == 0 {
|
|
fmt.Println("v...")
|
|
}
|
|
}
|
|
``` |