From 5f5194b3d03f68884399af8ff55bb6f78db318e2 Mon Sep 17 00:00:00 2001 From: ivahaev Date: Tue, 7 Mar 2017 14:10:12 +0500 Subject: [PATCH] Update README.md Fix example. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e8e52d..8b6005b 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,12 @@ func main() { // You need to catch them in event channel, DefaultHandler or specified HandlerFunction fmt.Println(result, err) } + + ch := make(chan bool) + <-ch } ``` ## SIC! You should not modify received events, because it can be read in another amigo goroutine. -If you need to modify, you should copy all values to another map and modify it. \ No newline at end of file +If you need to modify, you should copy all values to another map and modify it.