原书出处
精通 Go(Mastering Go 中文版)
196 10.5.3 通过goroutine共享内存
func monitor() { var value int for { select { case newValue := <-writeValue: value = newValue fmt.Printf("%d", value) case readValue <- value: } } }
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/精通 Go(Mastering Go 中文版)/_epub-src/10.5.3.html
EPUB SHA-256:0d52179a26f231568b311cf079e550da691bada67bb8d8be008b7940dd2c0848