Go language installation and Liteide configuration

Source: Internet
Author: User

Go language installation and Liteide configuration:

I installed the WINDOWS10 64-bit operating system as an example:

First download the go installation package from the official website: I take Go1.7rc6.windows-amd64.msi as an example, there is also a compressed file in the form of a download.

After the download is complete, double-click to install. All the way next you know, which installs the directory interface: You can put in the directory you want to put, you can also default his own directory. I take the D:\go directory as an example, all the way to install down.

After the installation is complete, the system has already configured the environment variables for you, so you do not need to manually configure.

On the command line, enter: Go to enter, the bottom of a large pile is a success.

The Go language installation is now complete. To choose a good compiler, in fact, a lot of text editor has a good support for the go language, this article introduced a compiler is liteide, he is specifically for the go language development of a compiler.

After downloading the lliteide, the direct decompression can be used, no installation, find the bin directory in the Liteide.exe, double-click to run.

After running a few things to configure, we call it goroot and Gopath, the first is actually you just install the Go installation directory, the second is your future work directory.

Click to view-----Edit the current environment



Put goroot=. Change to your go install directory, Goroot is configured.

=============================================================================================================== ======

Then configure Gopath, I use the D:\\goprojects directory as the working directory, in this directory to create a new three directories as follows:



Then in the environment variable the system variable new name Gopath, the variable value fills in your working directory D:\\goprojects (supports multiple working directories, if is multiple, in the middle is separated by semicolons).


Then go back to Liteide and click View----Management Gopath Discovery System Gopath The path you just set up is complete.

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.