Go (programming language)
Go, also known as Golang, is a statically-typed concurrent programming language made by an engineer team at Google.[7][8]
Paradigm(s) | Multi-paradigm: concurrent imperative, object-oriented[1][2] |
---|---|
Appeared in | November 10, 2009 |
Designed by | Robert Griesemer Rob Pike Ken Thompson |
Developer | The Go Authors[3] |
Typing discipline | Inferred, static, strong, structural,[4][5] nominal |
Major implementations | gc, gofrontend |
Influenced by | {{#statements:influenced by}}, Erlang, |
Influenced | Odin, Crystal, Zig, V (Vlang) |
Implementation language | Go, Assembly language (gc); C++ (gofrontend) |
OS | many |
License | 3-clause BSD[3] + patent grant[6] |
Usual filename extensions | .go |
Example
Here is a hello world program in Go. <syntaxhighlight lang="go" line="1"> package main // Import fmt library through the standard library. import "fmt"
// Define entry point. func main() {
// Write to output. fmt.println("Hello world!")
} </syntaxhighlight>
Go (programming Language) Media
Mascot of Go programming language is a Gopher shown above.
References
- ↑ "Is Go an object-oriented language?". Retrieved April 13, 2019.
Although Go has types and methods and allows an object-oriented style of programming, there is no type hierarchy.
- ↑ "Go: code that grows with grace". Retrieved June 24, 2018.
Go is Object Oriented, but not in the usual way.
- ↑ 3.0 3.1 "Text file LICENSE". The Go Programming Language. Retrieved October 5, 2012.
- ↑ "Why doesn't Go have "implements" declarations?". golang.org. Retrieved October 1, 2015.
- ↑ Pike, Rob (December 22, 2014). "Rob Pike on Twitter". Retrieved March 13, 2016.
Go has structural typing, not duck typing. Full interface satisfaction is checked and required.
- ↑ "Additional IP Rights Grant". The Go Programming Language. Retrieved October 5, 2012.
- ↑ "The Go Programming Language". golang.org. Retrieved 2021-04-13.
- ↑ "Golang: the simple programming language from Google". IONOS Digitalguide. Retrieved 2021-04-13.