Created
April 5, 2020 12:29
-
-
Save minhphong306/bcfd31a79092fc63cf98c3cf223dea4c to your computer and use it in GitHub Desktop.
hin_xinh_gai_with_sleep.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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