C#/java Programmer to Go/golang Programmer's notes (day 00)

Source: Internet
Author: User

First, installation instructions

Https://studygolang.com/dl

Second, environment variables

Download the *.msi installation file, and some environment variables are configured by default. Other configurations are described below

Iii. directory and project-level relationships

After the system environment variable configuration, Gopath's directory is your work area, and C#/java and other languages do not pass, you can freely store the project directory path.

In go, if there is a directory "package" level reference relationship, it must be stored under Gopath.

For example: Gopath=d:\goworks

Then the corresponding directory will have SRC, pkg, bin three directory

SRC below each folder, it corresponds to a separate project, all the IDE Tools reference directory, is also this path.

Otherwise there will be confusion, not conducive to development efficiency.

Four, the classic practical cases

https://www.jianshu.com/p/a3f63b5da74c

Chinese Forum: https://studygolang.com

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.