#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.

Golang Weekly

Checkout Go Weekly for the latest articles, tutorials and projects about Go.