Not to be confused with the Go! programming language by Francis McCabe
I don't know very much about the Google Go programming language, and it is a language I intend to not learn much about. This document will go over my knowledge of the Go programming language.
This is an example of a hello world program in the Google Go programming language.
package main
import "fmt" // Import Formatting settings
func main()
{ // This is the way I associate curly bracket usage in Go, as I see examples written like this, with the curly bracket wasting an extra line
fmt.Println("Hello, world!")
}
Comments in Go are identical to comments in C, JavaScript, CSS, C#, C++, etc..
// This is a single line comment
/* This is a
multi-line comment */
/* This is
* also a
* Multi-line
* comment */
break;
To this day, I am still not entirely sure what the break
keyword does, but most languages support it.
/!\ This example has not been tested yet, and may not work
-
Go was created in 2009 by Google
-
Google steamrolled over the Go! programming language
-
Google Go is created by Google
-
Go is a semicolon and curly bracket language
-
Go is meant to be a minimal recreation of the C programming language
-
Google Go uses the
.go
file extension -
Google uses a Gopher as a mascot for the Go programming language.
-
No other knowledge of the Google go programming language