gohook/README.md

27 lines
783 B
Markdown
Raw Normal View History

2017-02-06 16:55:01 +08:00
# gohook
[![CircleCI Status](https://circleci.com/gh/cauefcr/gohook.svg?style=shield)](https://circleci.com/gh/cauefcr/gohook)
![Appveyor](https://ci.appveyor.com/api/projects/status/github/cauefcr/gohook?branch=master&svg=true)
[![Go Report Card](https://goreportcard.com/badge/github.com/cauefcr/gohook)](https://goreportcard.com/report/github.com/cauefcr/gohook)
[![GoDoc](https://godoc.org/github.com/cauefcr/gohook?status.svg)](https://godoc.org/github.com/cauefcr/gohook)
2018-09-18 02:09:59 +08:00
<!-- This is a work in progress. -->
2018-09-05 03:25:08 +08:00
Based on [libuiohook](https://github.com/kwhat/libuiohook)
2018-09-05 03:25:08 +08:00
```Go
package main
import (
"fmt"
//"github.com/robotn/gohook"
"github.com/cauefcr/gohook"
2018-09-05 03:25:08 +08:00
)
func main() {
EvChan := hook.Start()
defer hook.End()
for ev := range EvChan {
fmt.Println(ev)
2018-09-05 03:25:08 +08:00
}
}
```