This is a creation in Article, where the information may have evolved or changed. This is the first tutorial of our [Golang Series Tutorial] (/SUBJECT/2). # # # Golang is what Go is also known as Golang: According to Rob Pike, the language is called Go,golang is just the official website URL), is developed by Google, an open-source compiled static language. The main focus of Golang is to make it easy to develop WEB applications that are highly available and scalable. Go positioning is the system programming language, just for WEB development support is good) # # Why Choose Golang since there are many other programming languages that can do the same work, such as Python,ruby,nodejs, why choose Golang as the server-side programming language? Here are some of the advantages I found when I used the Go language: * Concurrency is a part of the language (not implemented through the standard library), so it's easy to write a multithreaded program. Subsequent tutorials will discuss concurrency through the goroutines and channels mechanisms. * Golang is a compiled language. The source code is compiled into binary machine code. There is no such process in interpreted language, such as JavaScript in Nodejs. * The language specification is very concise. All specifications are displayed on a single page, and you can even use it to write your own compilers. :) * Go compiler supports static linking. All Go codes can be statically linked to a large binary file (which is actually not big at all) and can be easily deployed to cloud servers without worrying about dependencies. # # Installs Golang supports three platforms: Mac,windows and Linux (not just these three, but also other mainstream platforms). You can download binary files for the platform in [https://golang.org/dl/] (https://golang.org/dl/). (For well-known reasons, if you can not download, please go to [https://studygolang.com/dl] (https://studygolang.com/dl) download) # # # Mac OS in [https://golang.org /dl/] (https://golang.org/dl/) Download 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 the '/usr/local/go/bin ' folder will be added to the ' PATH ' environment variable. ### Windows Downloads MSI installer in [https://golang.org/dl/] (https://golang.org/dl/). Double-click to start the installation and follow the installation prompts, the Golang will be installed in the ' C:\Go ' directory, and the ' C:\Go\bin ' directory will be added to your ' PATH ' environment variable. # # # Linux Downloads the tar file in [https://golang.org/dl/] (https://golang.org/dl/) and extracts it to '/usr/local '. Please add '/usr/local/go/bin ' to the ' PATH ' environment variable. The Go has been successfully installed on ' Linux '. In the next part of the series **[golang Series Tutorial 2nd: Hello World] (/articles/11755) * *, we will create a workspace for go and write our first go program. :) Please provide us with valuable feedback and comments. Thank you for reading. :) * * Next tutorial-[Hello World] (/articles/11755) * *
via:https://golangbot.com/golang-tutorial-part-1-introduction-and-installation/
Author: Nick Coghlan Translator: Noluye proofreading: polaris1119 Unknwon
This article by GCTT original compilation, go language Chinese network honor launches
This article was originally translated by GCTT and the Go Language Chinese network. Also want to join the ranks of translators, for open source to do some of their own contribution? Welcome to join Gctt!
Translation work and translations are published only for the purpose of learning and communication, translation work in accordance with the provisions of the CC-BY-NC-SA agreement, if our work has violated your interests, please contact us promptly.
Welcome to the CC-BY-NC-SA agreement, please mark and keep the original/translation link and author/translator information in the text.
The article only represents the author's knowledge and views, if there are different points of view, please line up downstairs to spit groove
6,982 reads ∙1 likes