Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go入门-Hello World #14

Open
vonzhou opened this issue Dec 12, 2019 · 0 comments
Open

Go入门-Hello World #14

vonzhou opened this issue Dec 12, 2019 · 0 comments

Comments

@vonzhou
Copy link
Owner

vonzhou commented Dec 12, 2019

2年前学过一段时间的Go语言,看了几本书,但是后来不用就又生疏了,本次打算从头学习,never late to learn。最主要的原因是当前云原生技术 Docker,k8s都是Go实现的。在接下来的“Go入门”系列中主要跟着《The way to Go》践行。

Go 语言起源 2007 年,于 2009 年正式对外发布。三位作者都是大牛:Robert Griesemer参与开发 Java HotSpot 虚拟机;Rob Pike,Go 语言项目总负责人,贝尔实验室 Unix 团队成员;Ken Thompson,贝尔实验室 Unix 团队成员,C 语言、Unix 的创始人之一。

环境准备

➜  the-way-to-go git:(master) ✗ go version
go version go1.10.3 darwin/amd64

Hello World

➜  the-way-to-go git:(master) ✗ cat hello_world.go
package main

func main() {
	println("Hello", "world")
}
➜  the-way-to-go git:(master) ✗ go run hello_world.go
Hello world

思考

如果学了不用的话,可能仍然会再次遗忘,还是要有目的的学习,和现有的知识网络产生交集。平时哪些地方可以把Go用起来?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant