From ec680ecf20e895eb0e5935e87bafd85041d77ba5 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 28 Jul 2019 14:12:01 -0400 Subject: [PATCH] update example and readme code --- README.md | 2 +- example/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 251729c..3bc97a7 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ func main() { defer hook.End() for ev := range EvChan { - fmt.Println(ev) + fmt.Println("hook: ", ev) } } ``` diff --git a/example/main.go b/example/main.go index 9b1a7e8..4c1ac72 100644 --- a/example/main.go +++ b/example/main.go @@ -29,7 +29,7 @@ func base() { defer hook.End() for ev := range EvChan { - fmt.Println(ev) + fmt.Println("hook: ", ev) } }