コード風プロンプト例5b Goのgoroutine:チャネル通信
Outputs simulated Go channel communication results without executing code.
/plugin marketplace add kokuyouwind/claude-plugins/plugin install code-like-prompt@kokuyouwind-pluginsEmulate the following Go-style code internally (without using external tools or interpreter). Output only what fmt.Println() commands would output. Do not show any explanations, code, variables, or other messages.
package main
import "fmt"
func main() {
ch := make(chan string)
go func() {
ch <- "foo"
ch <- "bar"
}()
fmt.Println(<-ch)
fmt.Println(<-ch)
fmt.Println("baz")
}