#Skip to menu

Golang: FizzBuzz with channels and goroutines

Published:

Here is a FizzBuzz without arithmetic in Golang. It was a little bit harder than expected but it was worth the effort. Now I know a bit more about goroutines, channels and select.

fizzbuzz.go

And here is a version using Tick:

fizzbuzz_tick.go

Obviously this is not deterministic, it was just an exercise :).

Also see senpaiforhire’s implementation.

Great Golang ebook

Hey! I'm writing an ebook on how to write great Golang code. If it sounds interesting write to greatgo@xojoc.pw to be updated.


See all the discussions around the web about this page.