第十课如何写出优雅的Go代码

2022-01-14
1分钟阅读时长
  • effective-go

  • 50 shades

  • 100 Go Mistakes (How to Avoid Them)

  • awesome-go

    • golint
    • golangci-lint
    • go fmt
    • go vet
    • gocyclo 圈复杂度检查
    • ineffassign
    • misspell
  • reviewdog

《重构》第二版第三章 bad smell

《代码大全》表驱动章节

参考学习资料

goreportcard.com

https://golang.com/cmd/vet

https://github.com/kisielk/errcheck

https://github.com/timakin/bodyclose

https://github.com/gostaticanalysis/sqlrows

https://github.com/analysis-tools-dev/static-analysis

https://xargin.com/about-livinig-doc/

https://www.jetbrains.com/help/go/using-the-testify-toolkit.html#compare-expected-and-actual-values

https://github.com/golang/go/wiki/TableDrivenTests

https://segment.com/blog/5-advanced-testing-techniques-in-go/

https://stackoverflow.com/questions/42102496/testing-a-grpc-service

https://github.com/smartystreets/goconvey

https://github.com/onsi/ginkgo

https://blog.csdn.net/zwqjoy/article/details/79474196

https://juejin.cn/post/6844903837875208205

Go programming language第11章

https://github.com/gopl-zh/gopl-zh.github.com

PingCAP的failpoint

https://github.com/pingcap/failpoint

failpoint的设计与实现

https://juejin.cn/post/6844903837875208205

GoConvey测试

https://blog.csdn.net/zwqjoy/article/details/79474196

ginkgo测试

https://semaphoreci.com/community/tutorials/getting-started-with-bdd-in-go-using-ginkgo

Didi的Go流量录制、流量回放⽅案

https://github.com/didi/sharingan

关注公众号获得更多精彩文章

公众号:程序员大兵