代码示例:(标识:652513fecd6cd)
package main

import "fmt"

func main() {
	a := make(chan int)
	a <- 10
	fmt.Println("发送成功")
}
运行结果: