package main
import (
"fmt"
)
func main() {
var firstName string = "firstName"
var lastName = "lastName"
var fullName string // Go will assign default value "" empty string to a string variable
var age int // default value 0
// non-declaration statement
// must inside a function body
name := "Wan"
fmt.Println(name) // Wan
}
标签:non,string,Variables,var,statement,declaration,Go From: https://www.cnblogs.com/Answer1215/p/16655285.html