语言规范
控制 Goroutine 的生命周期
使用 gofmt
Context 一般作为第一个参数传参
copy struct 时需注意 slice 的拷贝
Don’t Panic
pkg 里面的包最好有 example
传值还是传指针?
Error 未处理
Share memory by communicating; don’t communicate by sharing memory.
在 go 出去的方法里加 recover
控制 Goroutine 的生命周期
使用 gofmt
Context 一般作为第一个参数传参
copy struct 时需注意 slice 的拷贝
Don’t Panic
pkg 里面的包最好有 example
传值还是传指针?
Error 未处理
Share memory by communicating; don’t communicate by sharing memory.
在 go 出去的方法里加 recover
相关标签:Golang