Guest User

Untitled

a guest
Oct 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "time"
  6. )
  7.  
  8. func say(s string) {
  9. for i := 0; i < 5; i++ {
  10. time.Sleep(100 * time.Millisecond)
  11. fmt.Println(s)
  12. }
  13.  
  14. }
  15.  
  16. func main() {
  17. go say("world")
  18. say("hello")
  19. }
Add Comment
Please, Sign In to add comment