问题标签 [go-playground]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
22 浏览

go - go pkg docs 中的 cmd.StdoutPipe 示例不在操场上运行

cmd.StdoutPipego 文档中的示例:https ://pkg.go.dev/os/exec#example-Cmd.StdoutPipe不在操场上运行。

https://play.golang.org/p/ek7-_Xa_bN3

错误:

在本地它运行正常,没有死锁。我无法理解为什么在去操场上会发生死锁。