> wg := sync.WaitGroup{}
just `var wg sync.WaitGroup`, it is cleaner this way
just `var wg sync.WaitGroup`, it is cleaner this way
cool it down a little. touch some grass. and hopefully you will see beauty in Go zero-values :P
For example, if you want to set a variable to the number of seconds in seven hours, you could just set the variable to 25200, or you could set it to 60 * 60 * 7. The expanded version might be clearer in the code context, but in the end they do exactly the same thing.
dont you mean a week? 60 x 60 x 24 x 7 ?
or at lest 8 hours?
7 hours is just odd
here is google guideline: https://google.github.io/styleguide/go/best-practices#declar...