Sign in
go
/
website
/
c860785947bfe91e9800e78e1c3ea527cbeba916
/
.
/
_content
/
tour
/
concurrency
/
goroutines.go
blob: 9efc83348e65048ee44141282fd297a0e537b361 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import (
"fmt"
"time"
)
func say(s string) {
for i := 0; i < 5; i++ {
time.Sleep(100 * time.Millisecond)
fmt.Println(s)
}
}
func main() {
go say("world")
say("hello")
}