原书出处
Go语言精进之路 _ 从新手到高手的编程思想,方法和技巧 = Go programming from beginners
冲channel而言,我们得到以下结论: 发送动作一定发生在接收动作完成之前;
接收动作一定发生在发送动作完成之前。 这与Go官方“Go内存模型”[1]一文中对channel通信的描述是一致的。正因如此,下面的代码可以保证main输出的变量a的值为"hello, world",因为函数f中的chan
nel接收动作发生在主goroutine对channel发送动作完成之前,而a
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Go语言精进之路 _ 从新手到高手的编程思想,方法和技巧 = Go programming from beginners/_epub-src/Text/Chapter34_0001.xhtml
EPUB SHA-256:ed420a18343af13da5588084e52b5c80baf71e64b3a9b7abcfbaa002f7e4d02f