From 4f5b3ead12b1752213323fd733b23821378f0c62 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 10 Oct 2019 13:11:32 -0400 Subject: [PATCH] update go hook example docs --- example/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()