<p>I figured out how to spawn an amount of processes in a fan but I wasn't sure how to do it in a chain. Any help would be greatly appreciated!</p>
<p>edit: Sorry, I meant a chain of n processes.</p>
<hr/>**评论:**<br/><br/>robpike: <pre><p>There is an example right in the main repository: <a href="https://github.com/golang/go/blob/master/test/chan/goroutines.go" rel="nofollow">https://github.com/golang/go/blob/master/test/chan/goroutines.go</a></p>
<p>It's a little subtle so draw a diagram to help you see how it works.</p></pre>Squatting_Dragon: <pre><p>Awesome thank you! There wouldn't happen to be an example of a fan would there? I would like to check mine with his. </p></pre>
![](https://static.golangjob.cn/static/img/banner.png)