Sobes.tech
Junior — Senior

How will the output change when running goroutines inside a loop

livecode

Task condition

Determine which numbers will be printed to the standard output of this program.

func main() {
    limit := 5000
    for idx := 0; idx < limit; idx++ {
        go fmt.Print(idx)
    }
}