Go Language Environment configuration

Source: Internet
Author: User

Go Language Environment configuration

Always want to find a job in the web, so-called 工欲善其事 its prerequisite, before the beginning of course is to choose a language of their own, finally chose go, concise, fast. Grammar is mainly through the official website of Go, and then ready to follow the "Go Web Programming" to learn again, the first step is naturally a local environment, mainly refer to the first chapter of "Go Web Programming". Here is a brief summary of the configuration essentials:

Configuration of the Liteide

Liteide is an open source free go language IDE with simple configuration and easy to get started

    • Gopath
      Open "View", "Manage Gopath", above is the system configuration (in the environment variable), the lower directory can be added by yourself
    • GOBIN
      Gobin is to execute the go install command, EXE file is installed (storage) directory, in the "View", "Edit environment variable" to remove the Gobin before the ; number, and then add the path name you need, such as I amC:\GoProject\bin

Configuration of the Sublimetext

Sublimetext Needless to say, known as the sexiest editor, to use as the Go language environment, as long as the installation of GoSublime this plugin can be, in addition to Chinese problems can be ConvertToUTF8 resolved through this plugin

    • Gopath and Gobin configuration in "Preferences", "Package Settings", "Gosublime", "Settings User" plus the configuration you need, you can refer to the "Settings Default "content.

Because my configuration GOPATH is in the system variable, my config file only adds the following content

 
   
  
  1. {
  2. "env": {"GOBIN": "`C:\GoProject\bin"},
  3. }

The overall environment is simple, the main problem is that the GOBIN above two environments GOPATH can be configured in the environment variables, GOBIN you need to follow the method specified above, otherwise the execution go install command will always prompt the error.



From for notes (Wiz)

Go Language Environment configuration

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.