Golang
·
发表于 5年以前
·
阅读量:428
package main
import "fmt"
func main() {
// `x := val` is shorthand for `var x type = val`.
x := "Hello var"
fmt.Println(x)
}
执行程序:
$ go run short-declarations.go
Hello var