Home  >  Article  >  Backend Development  >  What is the programming language go?

What is the programming language go?

藏色散人
藏色散人Original
2020-12-15 11:54:504953browse

The programming language go refers to the Golang language, which is a statically strongly typed, compiled, concurrent programming language with garbage collection function developed by Google; the syntax of Go is close to the C language, but for variables The declaration is different, Go natively also provides associative arrays.

What is the programming language go?

#The operating environment of this article: windows10 system, GO 1.11.2, thinkpad t480 computer.

Recommended: "golang tutorial"

Go (also known as Golang) is a statically strongly typed, compiled, and A programming language with garbage collection capabilities.

Robert Grismo, Rob Pike, and Ken Thompson began designing Go in September 2007, and later Ian Lance Taylor and Russ Cox joined the project. Go is developed based on the Inferno operating system. Go was officially announced in November 2009 and became an open source project, supporting operating systems such as Linux, macOS, and Windows. In 2016, Go was selected as "TIOBE's Best Language of 2016" by the software evaluation company TIOBE.

Currently, Go releases a second-level version every six months (that is, upgrading from a.x to a.y).

Go's syntax is close to C language, but the declaration of variables is different. Go supports garbage collection. Go's parallel computing model is based on Tony Hall's Communicating Sequential Process (CSP). Other languages ​​that adopt similar models include Occam and Limbo. Go also has the characteristics of this model, such as channel transmission. Thread pools and pipelines can be built through parallel constructs such as goroutines and channels. Plugin support is opened in version 1.8, which means that some functions can now be dynamically loaded from Go.

Compared with C, Go does not include functions such as enumeration, exception handling, inheritance, generics, assertions, virtual functions, etc., but it adds slice type, concurrency, pipeline, and garbage collection functions. Language-level support for , interfaces and other features. The Go 2.0 version will support generics, but has a negative attitude towards the existence of assertions, and also defends that it does not provide type inheritance.

Unlike Java, Go natively provides associative arrays (also known as hash tables (Hashes) or dictionaries (Dictionaries)).

The above is the detailed content of What is the programming language go?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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