Skip to content

Instantly share code, notes, and snippets.

@kenKanata56
Created December 19, 2017 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenKanata56/fbfd0159154fb4254aaca8b786878cfa to your computer and use it in GitHub Desktop.
Save kenKanata56/fbfd0159154fb4254aaca8b786878cfa to your computer and use it in GitHub Desktop.
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("世界")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment