Skip to content

Commit 7f99781

Browse files
committed
init
1 parent 125ae7a commit 7f99781

File tree

6 files changed

+50
-0
lines changed

6 files changed

+50
-0
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/pycon-2024-goroutine.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module pycon-2024-goroutine

main.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"time"
6+
)
7+
8+
func main() {
9+
go sayHello("Golang")
10+
sayHello("Korea")
11+
}
12+
13+
func sayHello(name string) {
14+
for i := 0; i < 10; i++ {
15+
fmt.Printf("Hello, %s!\n", name)
16+
time.Sleep(500 * time.Millisecond)
17+
}
18+
}

0 commit comments

Comments
 (0)