Go environment and go-client introduction of Kubernetes

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.