Win7 to build the Go language development environment

Source: Internet
Author: User

Win7 to build the Go language development environment

1 Download the Go installer package for the Windows version, Http://code.google.com/p/go/downloads/list

2 download Liteide for Windows, unzip and use after download

Http://code.google.com/p/golangide/downloads/list

3 Unzip the downloaded Go installation package and start configuring environment variables

4 Create a new environment variable named Goroot

5 Add the Go Bin directory to the system's PATH environment variable

6 Open the Liteide Bin directory under the Liteide.exe, start to configure the go to the compilation environment, click on the menu bar: View and options, liteenv, because the computer is installed on the 32-bit system, so double-click win32.env for environment variable editing

7 After the change is complete CTRL + S Save (modify Goroot, etc.), restart Liteide

[CPP]View Plaincopyprint?
    1. # Native Compiler Windows 386
    2. Goroot=c:\go
    3. gobin=
    4. Goarch=386
    5. Goos=windows
    6. Cgo_enabled=1
    7. path=%gobin%;%goroot%\bin;%path%
    8. Liteide_gdb=gdb
    9. Liteide_make=mingw32-make
    10. liteide_term=%comspec%
    11. liteide_termargs=
    12. liteide_exec=%comspec%
    13. Liteide_execopt=/c


8 After the restart in the package browse, if you can find go, the configuration is successful

9 Create a new directory for the GO program in your computer, and then click on the menu bar: View-Gopath, browse (equivalent to configure a project path)

10 Click OK to see the package browse one more

11 Create a simple engineering test Go language environment, click on the menu: file-New, following configuration, click OK

12 Click Buildandrun on the toolbar, run the program, if successful in the bottom of the compilation Output window will appear HelloWorld

Win7 to build the Go language development environment

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.