Skip to content

Instantly share code, notes, and snippets.

@sw-samuraj
Last active September 3, 2018 20:16
package main
import (
"fmt"
"time"
)
func main() {
for i := 0; i <= 9; i++ {
go func() { fmt.Println(i) }()
}
time.Sleep(100 * time.Millisecond)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment