meh not useful

This commit is contained in:
Mark McGranaghan 2012-10-17 18:31:47 -07:00
parent 236cd23c48
commit 855fde241c
2 changed files with 0 additions and 26 deletions

View File

@ -25,7 +25,6 @@ Recursion
# Errors # Errors
# OK Guards # OK Guards
Goroutines Goroutines
# Concurrent Goroutines
Channels Channels
# Channel Buffering # Channel Buffering
# Channel Directions # Channel Directions

View File

@ -1,25 +0,0 @@
package main
import "time"
import "math/rand"
import "fmt"
func f(n int) {
for i := 0; i < 10; i++ {
fmt.Println(n, ":", i)
breakTime := time.Duration(rand.Intn(150))
time.Sleep(time.Millisecond * breakTime)
}
}
func main() {
for i := 0; i < 5; i++ {
f(i)
}
fmt.Println()
for i := 0; i < 5; i++ {
go f(i)
}
var input string
fmt.Scanln(&input)
}