1, Go language introduction:
(1) The Go language is the second open source programming language released by Google 2009.
(2) The Go language is optimized for programming multi-processor system applications, with go-compiled programs that are comparable to the speed of C or C + + code, and are more secure and support parallel processes.
2. Go language Features
Advantage:
(1) static type, compiled open source language
(2) Scripting syntax
(3) Native support concurrency
Disadvantage:
(1) lack of grammatical sugar
(2) Operating efficiency less than C
(3) Insufficient third library
3. What the go language can do
(1) Server programming, processing logs, data packaging, virtual machine processing, file system and so on.
(2) Distributed system, database agent, etc.
(3) Network programming, Web applications, API applications, download applications,
(4) In-memory database, part of groupcache,couchbase developed by Google
(5) Cloud Platform
4, GO Environment installation
https://golang.org/dl/
5. Go Environment configuration
$GOROOT=/usr/local/go GO安装目录$GOPATH=/usr/local/var/www/go GO工作目录$GOBIN=$GOPATH/bin GO可执行文件目录$PATH=$PATH:$GOBIN:$GOROOT/bin GO全局调用
6. Go command
(1)go build(2)go install(3)go run(4)go get
7, Goland
https://www.jetbrains.com/go/
8, Go-client
https://github.com/kubernetes/client-go
9. Practice
(1) Installation Goland environment
(2) Demo instance Hello World
(3) Go-client Example