Go's
Hello World!
Variables
var declares one or more variables.
You can declare multiple variables at once.
Go will infer the type of initialized variables.
Variables declared without a corresponding initialization are zero-valued.
For example, the zero value for an int is 0.
The := syntax is shorthand for declaring and initializing a variable.
e.g. for var f string = "apple" in this case.
Companies using Go
More About Go Lang
Paradigm | Documentation | File extension | Since |
---|---|---|---|
Structured | golang.org | .go | November 10, 2009 |
Any doubts? Contact us!