First, "Golang development" Win7 (64-bit) under Eclipse Configuration Golang Development Debugging environment

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

Win7 (64-bit) under Eclipse Configuration Golang Development Debugging environment


1. Download the Golang Toolkit (which you can think of as Java-like JDK), I download the 64-bit installation package here:



2. Install the Golang Toolkit (one "next"), install completed at the command line enter the Go ENV command, the following interface appears, indicating that the Golang installation is successful (where Gopath need to be configured manually in the system environment variable):



3. Download Eclipse and install eclipse (unzip it), install finish to launch and install Eclipse's Golang plugin (i download the Eclipse offline install package here, After extracting the plugin, copy the files in the features and plugins folders to eclipse's corresponding features and plugins folders respectively, and restart eclipse:


4. Under Eclipse, Window-->preferences, the Go interface indicates a successful go plugin configuration:



5. Eclipse configuration Go parameter, here Gopath first not configure, click Apply App, and click OK to keep:



6. New Go project, click Finish to complete:



7. View the project catalog as follows:


8. Create a new Go file (in the SRC directory right-click New), enter the file name, click Finish to complete the creation, complete the following:





9. Enter the code as follows (it must be under the main package, otherwise it cannot be executed), right-click on the file to see the running effect (Hello World, done):







10. The above environment configuration is basically complete (need to install package and go plugin can be downloaded from the resources I provide), if you need debugging and code hints please follow the next article.




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.