Comment Comment by Ternari >you need to watch over and destruct goroutines manually to prevent memory leaksNo, you don’t. Any stack-allocated resources are freed when the function returns. WaitGroup is just there for synchronization. parent Ternari 7 months ago
No, you don’t. Any stack-allocated resources are freed when the function returns. WaitGroup is just there for synchronization.