为什么学GO?GO是什么?怎么学GO?

我为什么学GO

首先申明,我是一名大三的学生!以下学习GO的观点属于个人观点,只提供参考。

第一次听说go的契机

契机:就是由于听到同学在学,然后当时了解到的Docker的容器化技术是Go语言编写的,于是开始对于Go有了一些兴趣。

隔壁的哥哥推荐

推荐:由于在大二寒假的时候,对于技术的热爱(当时可能就只是想学更多东西吧),询问了他如何学习,他和我分享了许多如何提升自己,还有一些基础知识十分重要和设计模式的重要性。并且他还推荐我学习Go语言。

网络上的说法(当然网络上众说风云)

学习GO语言主要是因为它在安全领域的应用,它是区块链最主流的编程语言,同时也是当前最具发展潜力的语言。它支持数据处理和大并发处理能力,能有效解决我的很多问题。Go语言是Google公司创造的语言,也是Google主推的语言。国外如Google、AWS、Cloudflare、CoreOS等,国内如七牛、阿里、小米、京东等都已经开始大规模使用Golang开发其云计算相关产品。

以下是一些参考

Go是什么?

Go is a new language. Although it borrows ideas from existing languages, it has unusual properties that make effective Go programs different in character from programs written in its relatives. A straightforward translation of a C++ or Java program into Go is unlikely to produce a satisfactory result—Java programs are written in Java, not Go. On the other hand, thinking about the problem from a Go perspective could produce a successful but quite different program. In other words, to write Go well, it’s important to understand its properties and idioms. It’s also important to know the established conventions for programming in Go, such as naming, formatting, program construction, and so on, so that programs you write will be easy for other Go programmers to understand.

Go 是一门新语言。尽管它借鉴了现有语言的思想,但它具有不寻常的特性,这使得有效的 Go 程序在性质上与用其亲戚编写的程序不同。将 C++ 或 Java 程序直接翻译成 Go 不太可能产生令人满意的结果——Java 程序是用 Java 编写的,而不是用 Go 编写的。另一方面,从 Go 的角度思考问题可能会产生一个成功但完全不同的程序。换句话说,要写好 Go,了解它的属性和习语很重要。了解 Go 编程的既定约定也很重要,例如命名、格式、程序构造等,以便您编写的程序易于其他 Go 程序员理解。