gobyexample/examples/short-declarations/short-declarations.go
2012-10-09 21:02:12 -07:00

10 lines
139 B
Go

package main
import "fmt"
func main() {
// `x := val` is shorthand for `var x type = val`.
x := "Hello var"
fmt.Println(x)
}