参考文档
还有很多不错的技巧,下面的这些参考文档可以让你写出更好的Go的代码,必读!
- EffectiveGohttps://golang.org/doc/effective_go.html
- UberGoStylehttps://github.com/uber-go/guide/blob/master/style.md
- 50 Shades of Go: Traps, Gotchas, and Common Mistakes for New Golang Devshttp://devs.cloudimmunity.com/gotchas-and-common-mistakes-in-go-golang/
- GoAdvicehttps://github.com/cristaloleg/go-advice
- Practical Go Benchmarkshttps://www.instana.com/blog/practical-golang-benchmarks/
- Benchmarks of Go serialization methodshttps://github.com/alecthomas/go_serialization_benchmarks
- DebuggingperformanceissuesinGoprogramshttps://github.com/golang/go/wiki/Performance
- Gocoderefactoring:the23xperformancehunthttps://medium.com/@val_deleplace/go-code-refactoring-the-23x-performance-hunt-156746b522f7
- Golang Error Handling lesson by Rob Pikehttp://jxck.hatenablog.com/entry/golang-error-handling-lesson-by-rob-pike
- Errors are valueshttps://blog.golang.org/errors-are-values
- “Self referential functions and design” by Rob Pike http://commandcenter.blogspot.com.au/2014/01/self-referential-functions-and-design.html