11 lines
267 B
Go
11 lines
267 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
var x string = "Hello world" // `var` declares 1 or more variables. The ype comes
|
|
fmt.Println(x) // at the end.
|
|
|
|
var a, b int = 1, 2 // An example of declaring multiple ints variables.
|
|
}
|