💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` func send(out chan <- int) { out <- 100 close(out) } func recv(in <- chan int) { n := <- in fmt.Println("读到:", n) } func main() { ch := make(chan int) go func() { send(ch) }() recv(ch) } ```