Go (programming language)

From Simple English Wikipedia, the free encyclopedia
Go
ParadigmMulti-paradigm: concurrent imperative, object-oriented[1][2]
Designed byRobert Griesemer
Rob Pike
Ken Thompson
DeveloperThe Go Authors[3]
First appearedNovember 10, 2009; 14 years ago (2009-11-10)
Stable release1.22.2[4] Edit this on Wikidata / 3 April 2024; 9 days ago (3 April 2024)
Typing disciplineInferred, static, strong, structural,[5][6] nominal
Implementation languageGo, Assembly language (gc); C++ (gofrontend)
OSmany
License3-clause BSD[3] + patent grant[7]
Filename extensions.go
Websitego.dev
Major implementations
gc, gofrontend
Influenced by
C, Oberon-2, Limbo, Active Oberon, communicating sequential processes, Pascal, Oberon, Smalltalk, Newsqueak, Modula-2, Alef, APL, BCPL, Modula, occam, Erlang,
Influenced
Odin, Crystal, Zig, V (Vlang)

Go, also known as Golang, is a statically-typed concurrent programming language made by an engineer team at Google.[8][9]

Example[change | change source]

Here is a hello world program in Go.

package main
// Import fmt library through the standard library.
import "fmt"

// Define entry point.
func main() {
    // Write to output.
    fmt.println("Hello world!")
}

References[change | change source]

  1. "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.
  2. "Go: code that grows with grace". Retrieved June 24, 2018. Go is Object Oriented, but not in the usual way.
  3. 3.0 3.1 "Text file LICENSE". The Go Programming Language. Retrieved October 5, 2012.
  4. "Release History".
  5. "Why doesn't Go have "implements" declarations?". golang.org. Retrieved October 1, 2015.
  6. 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.
  7. "Additional IP Rights Grant". The Go Programming Language. Retrieved October 5, 2012.
  8. "The Go Programming Language". golang.org. Retrieved 2021-04-13.
  9. "Golang: the simple programming language from Google". IONOS Digitalguide. Retrieved 2021-04-13.