Too Long; Didn't Read
There are several ways to make a mess inside a loop which you need to be aware of. These are mistakes that I’ve made writing Go. Don't Make These 5 Golang Mistakes: Using reference to loop iterator variable is a single variable that takes different values in each loop iteration. Using defer in loop can only be unblocked, when at line 5 is invokedtimes, since it is used as parameter to callat line2. Sending into an unguaranteed channel may become a channel that suffers no fools. You shouldn’t usein a loop unless you’re sure what you are doing.