刘道玉 AI 工作坊
随笔 研究 专题 工作坊 关于 RSS

Go Proverbs

2023-09-09

以下要熟练背诵下来,然后再练习和感悟,最后炉火纯青的应用。

Go Proverbs

Simple, Poetic, Pithy

Don’t communicate by sharing memory, share memory by communicating.

Concurrency is not parallelism.

Channels orchestrate; mutexes serialize.

The bigger the interface, the weaker the abstraction.

Make the zero value useful.

interface{} says nothing.

Gofmt’s style is no one’s favorite, yet gofmt is everyone’s favorite.

A little copying is better than a little dependency.

Syscall must always be guarded with build tags.

Cgo must always be guarded with build tags.

Cgo is not Go.

With the unsafe package there are no guarantees.

Clear is better than clever.

Reflection is never clear.

Errors are values.

Don’t just check errors, handle them gracefully.

Design the architecture, name the components, document the details.

Documentation is for users.

Don’t panic.

  • go 语言学习
读书笔记之《特斯拉自传》
北漂的日子(二十二)北京住过的那些地方
订阅 · 外部站点 · 行业资料 · 全部文章
© 2026 刘道玉 AI 工作坊
京ICP备16032693号