Yes, that generally works quite well. I find I like to concentrate all the logic in just one of the goroutines, usually the reader goroutine, and have the writer handoff any decision making or events it requires to the reader. It is just easier to read when you find all the cases handled in one place.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ca6f105d-69de-4ee1-a1dc-2fb60e61d057n%40googlegroups.com.