IT常识
技术 Python PHP JavaScript IOS Android Java 数据库 资源 公众号 代码片段 github
  • IT常识
  • 资源

Go Proverbs

Posted 2020-12-13 rsapaper

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Go Proverbs相关的知识,希望对你有一定的参考价值。

https://github.com/go-proverbs/go-proverbs.github.io

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 Proverbs的主要内容,如果未能解决你的问题,请参考以下文章

Go语言学习之路

如何配置go语言开发环境

go语言(golang)学习之路

2021-GO语言并发编程

2021-GO语言并发编程

Go语言泛型工具go2go

(c)2006-2024 SYSTEM All Rights Reserved IT常识