Skip to content

Instantly share code, notes, and snippets.

@minhphong306
Created April 5, 2020 12:29
Show Gist options
  • Save minhphong306/bcfd31a79092fc63cf98c3cf223dea4c to your computer and use it in GitHub Desktop.
Save minhphong306/bcfd31a79092fc63cf98c3cf223dea4c to your computer and use it in GitHub Desktop.
hin_xinh_gai_with_sleep.go
package main
import (
"fmt"
"time"
)
func hienCoXinhGaiKhong() {
fmt.Println("Hien rat xinh gai")
}
func main() {
go hienCoXinhGaiKhong()
time.Sleep(1 * time.Second)
fmt.Println("Good bye")
}
-- output
Hien rat xinh gai
Good bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment