Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix example.
ivahaev authored Mar 7, 2017
1 parent 61bc140 commit 5f5194b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
If you need to modify, you should copy all values to another map and modify it.

0 comments on commit 5f5194b

Please sign in to comment.