Hyper-Verbose Go language Windows installation full guide

Source: Internet
Author: User
Tags git client

1, download the Go Language Windows installation package, you can directly to the official website to download, also can download from this site cloud disk, because the domestic was banned, go language official website often will not open Win32 version: Link: http://pan.baidu.com/s/1eQlIT2M Password: QOSR Win64 version: Link: http://pan.baidu.com/s/1qWmK7wg Password: r5z72. Double-click Install, default installation, direct point "next" on the line, the default is installed in the C:\go, you can also modify into other directories, the directory should not contain Chinese name

3. Set the system environment variable goroot, and put the%goroot%\bin; Add to the PATH environment variable go to XP under the following

Win7 the following:

4. Enter go in the command line mode, if the following characters are output, the Go language is basically installed successfully.

5. Set the GOPATH environment variable, create a new directory in C: \ Go_project, add the system environment variable Gopath point to it, the GOPATH environment variable can be set at the same time how much, Windows under; partition, Linux under: Number delimited, use go The Get command installs the third-party library when installed by default in the first Gopath directory

6. We now write a small program to verify that the new hello.go is saved to c:\go_project\src under the package Mainimport ("FMT") func main () {FMT. Println ("hello,go!")}

6. How to install a third-party development library, to install the third party libraries, you need to install the GIT client on your computer, to ensure that in command-line mode git command can use

The GIT installation package is as follows: Link: http://pan.baidu.com/s/1o6ieRea Password: JOH8

As an example of installing the most common MySQL driver, enter in command line mode: Go get github.com/go-sql-driver/mysql

Hyper-Verbose Go language Windows installation full guide

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.