- 首页
- 全部评论
-
评论了博文 Go 系列教程 —— 31. 自定义错误func cicleArea(radius float64) (float64, error) { 为什么error是小写的,但是在其他包能够调用到? 还是说接口没有这个限制? --- fmt....我有一个问题比较困惑,一个程序跑下来会有很多不同的地方通过go xxMethod()来启动协程, 但是应该在哪个上面用 sync.WaitGroup 呢? 有没有一句话可以总结的规律?评论了博文 Go 系列教程 —— 24. Select在 死锁与默认情况 中 "由于没有 Go 协程向该信道写入数据", 程序怎么知道的?评论了博文 Go 系列教程 —— 17. 方法<a href="/articles/12264#comment8" title="8">#8<span>楼</span></a> <a href="/user/polaris" title="@po...评论了博文 Go 系列教程 —— 17. 方法<a href="/articles/12264#comment8" title="8">#8<span>楼</span></a> <a href="/user/polaris" title="@po...评论了博文 Go 系列教程 —— 17. 方法func (r rectangle) area() { func (r *rectangle) area() { --- 第二行,有个星号评论了博文 Go 系列教程 —— 17. 方法```go func (r rectangle) area() { fmt.Println(r.length * r.width) } func (r rectangle) area() { fmt...评论了博文 Go 系列教程 —— 17. 方法```go func (r rectangle) area() { fmt.Println(r.length * r.width) } func (r *rectangle) area() { ...评论了博文 Go 系列教程 —— 16. 结构体emp8 := &Employee{"Sam", "Anderson", 55, 6000,} fmt.Printf("%T",emp8) ...评论了博文 Go 系列教程 —— 14. 字符串func mutate(s []rune) string { s[0] = 'a' return string(s) } func main() { h := "he...X登录和大家一起探讨吧