Golang Tutorial-1.1 Multi-platform installation Golang

Source: Internet
Author: User
Tags windows download golang tutorial
* * This article is the first Golang language learning tutorial **# What is golang?************* personally think the novice to the true characteristics of the lack of understanding, characteristics and so on in the real learning can really understand. So the following conceptual things need only a general understanding. *go language is a brand-new programming language launched by Google, which makes it easy to construct simple, reliable and efficient software. * * Open Source in November 2009, released the Go 1 stable version earlier in 2012. Now the go development is completely open and has an active community. # # Go language features + simple, fast, secure + parallel, fun, open source + memory management, v array security, quick and easy ****************# Go language installation Golang supports three platforms: Mac,windows and Linux (not just these three, also support other mainstream platform). [Download Address] (HTTPS://STUDYGOLANG.COM/DL) # # # Mac OS after downloading the installer. Double-click to start the installation and follow the installation prompts, the Golang will be installed in the   '/usr/local/go '   directory, and   '/usr/local/go/bin '   folders will also be added to the   ' PATH '   environment variables. # # # After the Windows Download MSI Setup program. Double-click to start the installation and follow the installation prompts, the Golang will be installed in the   ' C:\Go '   directory, and   ' C:\Go\bin '   directories will also be added to your   ' PATH '   environment variable. # # # Linux Download the tar package file and unzip to   '/usr/local '. Execute ' bashecho ' export path=/usr/local/go/bin: $PATH ">~/.bashrcsource ~/.BASHRC" Go has been successfully installed in   ' Linux '   It's up. Run the command go directly, will pop up the usage, indicating the configuration succeeded "[Root@localhost ~]# GoGo is a tool for managing go source code. Usage:go command [arguments]the commands are:build compile packages and dependenciescleA Remove object files and cached Filesdoc show documentation for package or SYMBOLENV print Go environment informationbug Start a bug reportfix update packages to use the new apisfmt gofmt (reformat) package sourcesgenerate generate Go files by PR ocessing sourceget Download and install packages and Dependenciesinstall compile and install packages and dependencieslist List Packagesrun compile and run Go programtest test packagestool run specified go toolversion print Go Versionvet report Likely mistakes in Packagesuse ' Go help [command] ' For more information about a command. Additional help Topics:c calling between Go and Cbuildmode build Modescache build and test Cachingfiletype file Typesgopat H gopath Environment variableenvironment Environment Variablesimportpath import path Syntaxpackages Package Liststestflag Testing Flagstestfunc Testing FunctionsUse "Go help [topic]" For more information on that topic. "65 Reads  
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.