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