Go Language Primer Series 1: Install, how to Write Go Code

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed. https://golang.org/doc/code.html src contains Go source files, Pkg contains Package objects, and bin contains executable commands. the Go tool builds source packages and installs the resulting binaries to the Pkg and bin directories. you need to set it first: the Gopath Specifies the location of your Workspace .  Gopath must not Be the same path as your Go installation. installation Download https://golang.org/dl/ as https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gzTar-c/usr/local/-xzf go1.8.3.linux-amd64.tar.gz export path= $PATH:/usr/local/go/bin Goroot must is set when installing to a Custom Location . So the most well installed in under the/usr/local directory Why use the Go language? What are the advantages of the Go language? simple deployment. I found that it took me four years to temper my ability to build a system in C language, trying to find a specification that could better write software. It turned out to be just a parody of Go. The lack of language support can only be a parody. for most background scenarios, choosing Golang is a very smart choice. If you are a C enthusiast, it is highly recommended that you learn and use go. Go can call a C + + program The time you used to learn 89 C + + advanced features, it is estimated that 64 open source projects have been written with go.
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.