- 首页
- 全部评论
-
评论了主题 go routing问题请教我知道了,没有打印匿名函数的"在goroutine内",是因为main函数执行太快退出了。使用等待或者信道阻塞就可以打印了。func test1(t interface{}) {} #可以接收interface{}入参,当然包括string func test2(t []interface{}) {} #可以...<a href="/topics/4089#comment3" title="3">#3<span>楼</span></a> <a href="/user/channel" title="@chann...评论了主题 新手运行时报错了,帮忙看一下GOPATH没设置好,或者go build试试<a href="/topics/4089#comment1" title="1">#1<span>楼</span></a> <a href="/user/channel" title="@chann...X登录和大家一起探讨吧