At least one new variable on the left side of :=
- The existing variable must receive a value of the same type it had earlier.
examples/new-variable-on-the-left/new_variable_on_the_left.go
package main import "fmt" func main() { a, b := 1, 2 fmt.Println(a, b) a, c := 3, 4 fmt.Println(a, b, c) }
1 2 3 2 4