Golang Study first day environment construction

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

Step1 Purchase Host:

    • The Gospel of the bricklayer Dick Silk is much cheaper than Ali Hua.

      I'm not much more specific. png

Cons: Network instability no stability in Los Angeles
Advantages: Low Price

    • Re-install the system

Default 32-bit, not up-to-date system. png

Description: Centos-7 does not support interface installation Shadowsocks CENTOS6 only supports pits here

    • Install Shadowsocks:

      Management Tools Https://bwh1.net


      Direct access to Google. png

Step 2 Environment Building

    • Liunx under Installation
      Http://www.golangtc.com/download
      Select version: go1.8.linux-amd64.tar.gz

      Export Goroot=/home/xx/ob_rel/go
      Export path= $PATH: $GOROOT/bin
      Export Gopath=/home/xx/work/go

    • Window under Installation
      goroot=d:\software\go1.8
      Path:%goroot%\bin
      Gopath=e:\code\go

http://studygolang.com/articles/6590

    • Compile run
      Golang compilation using the command go build, go install
      Gopath= project root directory;
      It should be created under the Src,pkg,bin directory, which is used in the bin directory to generate the executable files used in the PKG directory to generate. A Files

    • QA Golang Engineering Structure
      Packet xx xx is the directory of SRC?
      is import xx xx a directory of SRC?
      The last element after import should be the path, which is the directory, not the package name.

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.