One of the Golang Getting Started (Installation configuration)

Source: Internet
Author: User

Download address: Go language Chinese web

Image.png

Windows installation Configuration

Download 32-bit (386) or 64-bit (AMD64) as needed;
Take the zip version for example:

  • Download after decompression, guarantee and Decompression folder in the full path without Chinese and space;
  • Enter the extract file and configure the bin file path to the environment variable;
  • After the configuration is complete, open the DOS window or PowerShell, enter Go version, return, the version number shows that the go variable is configured successfully

Linux (Ubuntu) installation configuration

View System version: Uname-a
Take the tar.gz version as an example:

  • Copy compressed package to specified directory: CP go...tar.gz/opt
  • Unzip file: TAR-ZXVF go.....tar.gz
  • After extracting into the bin file, enter./go version, you can see the versions
  • Configuring environment variables: sudo vim/etc/profile
export GOROOT=/opt/goexport PATH=$PATH:$GOROOT/binexport GOPATH=$HOME/goproject
  • Log out of the login and use go version to see if the environment variable is configured successfully
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.