ZhangZhihui's Blog  

2023年9月27日

摘要: package main import ( "fmt" "sync" "time" ) var workers = 3 func processItem(input <-chan int, output chan<- int, wg *sync.WaitGroup) { for { fmt.Prin 阅读全文
posted @ 2023-09-27 16:56 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0) 编辑
 
摘要: main.go: package main import "fmt" func main() { ch := make(chan int) ch <- 1 a := <-ch fmt.Println(a) } Got error: zzh@ZZHPC:/zdata/MyPrograms/Go/tes 阅读全文
posted @ 2023-09-27 16:18 ZhangZhihuiAAA 阅读(21) 评论(0) 推荐(0) 编辑