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

View File

@ -1,8 +1,12 @@
// # Variables
package main package main
import "fmt" import "fmt"
func main() { func main() {
var x string = "Hello World" var x string = "Hello world" // `var` declares 1 or more variables. The ype comes
fmt.Println(x) fmt.Println(x) // at the end.
var a, b int = 1, 2 // An example of declaring multiple ints variables.
} }