The difference between go and golang

WBOY
Release: 2023-05-13 10:01:36
Original
738 people have browsed it

In recent years, Go language has become the programming language of choice for more and more companies and software developers. However, when learning Go language specifically, you may find that some people call it go, while others call it go. Then it is called Golang. Why is this? This article will introduce the differences between go and Golang.

First of all, you can take a look at the official Go language website (https://golang.org/). It is obvious that the official website of Go language uses golang.org as the domain name. This is the first difference: the official name of the Go language is "Go", but its official website is named after "golang". In fact, the Go language is also introduced in the official Chinese documentation and is officially called the "Go language".

The second difference lies in another name: "gopher". Gopher is the mascot of the Go language, a cute arched gopher image. If you often visit Go language-related technical communities or read Go language-related books, you will definitely see the name gopher.

The third difference is the installation path of the Go language. In Windows systems, the Go language will be placed in the C:Go directory by default after installation, while in Linux and MacOS, it will be placed in the /usr/local/go directory by default. If you want to use the Go language from your command line, then you need to add the $GOROOT/bin path to the environment variable $PATH.

The last difference is about habits in actual use. Although the official name of the Go language is "Go", in actual use, many people also use the name "Golang" to refer to this programming language. In some Go language tutorials and practical articles, you can also see that the name "Golang" is widely used.

So why do some people use Golang to call the Go language? In fact, this may have something to do with go.tools, the Go language editor and developer community. go.tools is a toolkit of Go language, which includes many tools commonly used by Go language developers in the process of using Go language, such as code formatting, document generation, code static analysis, etc. go.tools also contains a binary file named "go", so someone will naturally use the name Golang to call this programming language.

To sum up, the official name of Go language is "Go", and the official website is named after "golang". The installation path of Go language is different from the common paths of other programming languages. In use, some people will use the name "Golang" to call it, but many people still only call it "Go language". In any case, for those who are learning and using Go language, it is beneficial to clarify these details, because they help you better understand and learn this programming language.

The above is the detailed content of The difference between go and golang. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template