Pycharm Golang Development environment (the most convenient and fast go language development environment)

Source: Internet
Author: User
Tags install go python script sublime text

IntelliJ is too bull. In order to configure the Go language development environment, toss a half-day, under IDE (Sublime Text,intellij idea), then install Go plugin. Install go plugin also to download plug-in Project source code, compile and so on, Sublime also want to enter the Python script, sticky in but, headache.

Suddenly realize a truth, if you feel that the current hand things become very painful, not the problem itself, is that you did not find a good solution to the problem, or that, "it is not too painful, you are too stupid."

In the non-stop plug-in, try the process, suddenly found that pycharm with idea, is also supporting the Go plugin, immediately realized that pycharm can develop go, to idea dry hair. Another thought, pycharm and idea are IntelliJ products, support should not be bad, so decisively abandon idea.

It's pretty easy to install the go plugin in pycharm (IDEA).

Pycharm "File->settings->plugins" in the upper left corner:

Click "Browse repositories", enter the Go query, see the right side of the instructions to confirm the correct go plugin can be installed:

Pycharm inside the Go plugin installed, the middle may need to restart Pycharm, open File->settings->languages & Frameworks, which will be more out of the Go Settings menu:

Click the Go->go SDK to set the Go SDK path (Go's lib installation directory), and the following version will automatically detect the Go compiler release:

Depending on your needs, you can also do some of your own configuration in Go->project settings, such as turning on vendoring.

After setting up, Pycharm will automatically load the Go SDK path file set above in the Go project, no need to set any gopath,goroot.

Go libraries can be set up later when the project is needed.

To create a new Gotest project, select Go:

Enter a simple test code, debugging with Pycharm inside debugging python, writing code will have automatic completion and hints:

Note:

Ubuntu Install the Go Language compiler environment is also very simple, convenient for those who do not have VPN "FQ" to code.google.com students:

Ubuntu Software Center Search Golang can, click to see "More information", confirm that we need to Golang compilation environment, installation can.

Or that sentence, "When you find that things on your hands are very cumbersome, you are often too stupid".

Enjoy go!

Pycharm Golang Development environment (the most convenient and fast go language development environment)

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.