golang 笔记
In Go, the := operator is a shortcut for declaring and initializing a variable in one line (Go uses the value on the right to determine the variable's type). Taking the long way, you might have written this as:
var message string
message = fmt.Sprintf("Hi, %v. Welcome!", name)
// message := fmt.Sprintf("Hi, %v. Welcome!", name)
// var message = fmt.Sprintf("Hi, %v. Welcome!", name)
+V why_null 请备注:from博客园