diff --git a/example/main.go b/example/main.go index 4c1ac72..c454a13 100644 --- a/example/main.go +++ b/example/main.go @@ -3,9 +3,10 @@ package main import ( "fmt" - "github.com/robotn/gohook" + hook "github.com/robotn/gohook" ) +// hook listen and return values using detailed examples func add() { s := hook.Start() defer hook.End() @@ -24,6 +25,7 @@ func add() { } } +// base hook example func base() { EvChan := hook.Start() defer hook.End()