| In Go, variables are explicitly declared and used by
the compiler to e.g. check type-correctness of function
calls. |  | 
        
        
          |  |   | 
        
        
          |  |  | 
        
        
          |  |  | 
        
        
          | vardeclares 1 or more variables.
 | 	var a string = "initial"
	fmt.Println(a)
 | 
        
        
          | You can declare multiple variables at once. | 	var b, c int = 1, 2
	fmt.Println(b, c)
 | 
        
        
          | Go will infer the type of initialized variables. | 	var d = true
	fmt.Println(d)
 | 
        
        
          | Variables declared without a corresponding
initialization are zero-valued. For example, the
zero value for an intis0. |  | 
        
        
          | The :=syntax is shorthand for declaring and
initializing a variable, e.g. forvar f string = "short"in this case. | 	f := "short"
	fmt.Println(f)
}
 |