Update example_test.go

add a bool channel, keep waiting for the `for` code snippet.