gobyexample/src/05-variables.go
Mark McGranaghan 67c7a30b0f trimming
2012-09-20 20:22:28 -07:00

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.
}