Puzzle 14 Explanation: Short Variables
Understand why multiple variable declarations matter.
We'll cover the following...
Try it yourself
Try running the code below to see the result.
Press + to interact
package mainimport ("fmt")func main() {a, b := 1, 2b, c := 3, 4fmt.Println(a, b, c)}
Explanation
In Go, the short variable declaration (:=
...