Golang Development Environment Construction

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

Golang Development Environment Construction

Golang入门教程开发环境搭建

Introduced

The go language is a new programming language launched by Google that can reduce the complexity of your code without compromising application performance.
Rob Pike, Google's Chief software engineer, said: "We have developed go because of the difficult software development of the last 1 to more than 0 years
The degree of frustration.
"Go gives me the experience I've never had before," said Rob Pike, Google's senior software engineer, Rob Paik. Parker said,
Like today's C + + or C, go is a system language. He explains, "it can be developed quickly, and it's a real
The right compiler language, we open it now because we think it's very useful and powerful.

  • Baidu Encyclopedia
  • Wikipedia
  • Golang official website

Installation

Windows

    1. Official notes
      Http://golang.org/doc/install#windows
    2. MSI download
      https://golang.org/dl/
    3. Idiot-style down-mount
    4. Set the Goroot to go in the system variable, gopath the working directory for the Golang project
    5. Golang environment test, CMD or powershell input go, shown below indicates the installation configuration is successful
    6. For more information, please check the official documentation directly.

Linux

    1. Download the corresponding package according to the operating system
    2. Extract
      $ tar -C /usr/local -zxf go1.3.3.linux-amd64.tar.gz
    3. Add the Bin directory of the Golang to the system variable path
      $ export PATH=$PATH:/usr/local/go/bin
    4. Gopath variables are not required and are primarily used in development environments
    5. Golang Environmental Testing

Mac

    1. Download the Golang installation package for installation According to the official instructions
    2. Installing with homebrew

IDE Configuration

Sublime

    1. Search and install the Gosublime plugin
    2. crtl+bYou can bring up the command line to compile and execute the go code.

Intellij idea

    1. Plugins search Golang, installation can
    2. Restart IntelliJ idea

Eclipse

    1. Search goclipse , and install
    2. Restart Eclipse

Author: King.han
December 1, 2014

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.