How to assign same value to multiple variables

If you repeat yourself for more values then use a loop and set them all to a slice or something. Otherwise, assigning some values to a few variables is fine. In Go, we love explicitness other than anything.

2 Likes