2012-10-09 21:02:12 -07:00

15 lines
277 B
Go

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