This commit is contained in:
Mark McGranaghan 2012-09-20 19:23:25 -07:00
parent 867f476bd5
commit 727567971c

@ -1,8 +1,12 @@
// # Variables
package main
import "fmt"
func main() {
var x string = "Hello World"
fmt.Println(x)
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.
}