mirror of
https://github.com/robotn/gohook.git
synced 2024-12-12 00:46:42 +08:00
883 B
883 B
gohook
package main
import (
"fmt"
"github.com/robotn/gohook"
)
func main() {
EvChan := hook.Start()
defer hook.End()
for ev := range EvChan {
fmt.Println("hook: ", ev)
}
}
Based on libuiohook.