SimonWaldherr / golang-examples

Go(lang) examples - (explain the basics of #golang)
https://simonwaldherr.github.io/golang-examples/
MIT License
1.57k stars 453 forks source link

refactor parallel for a more idiomatic approach #17

Closed while-loop closed 7 years ago

while-loop commented 7 years ago

The old code has lots of repeated lines and multiple channels.

This approach allows for a dynamic amount of goroutines to be created.

5

SimonWaldherr commented 7 years ago

👍