Go Language Learning Series 001-Download and install

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Go Language Learning Series 001-Download and install

[TOC]

Basis

This article is based on Https://go-zh.org/doc/install

Please refer to the official installation documentation for different systems.

Download and go Environment

Offline Download Address: https://golang.org/dl/

Download the corresponding offline package according to your operating system.

For example, I downloaded here: https://storage.googleapis.com/golang/go1.9.darwin-amd64.pkg

Download IDE

The author here is liteide, open source cross-platform.

The download address is as follows: Https://www.golangtc.com/download/liteide

Once resolved, run directly.

Test installation

All programming languages, when learning, are basically hello world. So......

First create a file named hello.go , add the following code.

package mainimport (    "fmt"    "time")func main() {    fmt.Println("hello, wolf\n")    fmt.Println("The time is", time.Now())}

Click on Build and Run above the IDE BR . Compile and run. The results appear as follows:

/Users/SLB/Desktop/Go/Code/Code  [/Users/SLB/Desktop/Go/Code]hello, wolfThe time is 2017-08-29 13:40:37.190880054 +0800 CST m=+0.000274548成功: 进程退出代码 0.
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.