Skip to content

Commit

Permalink
learn go
Browse files Browse the repository at this point in the history
  • Loading branch information
okbug committed Nov 23, 2022
1 parent 159828e commit a671bbc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions golang/routine/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

import "fmt"

func task(from string) {
for i := 0; i <= 10; i++ {
fmt.Println(from, " => ",i)
}
}
func main() {
go task("routine")
task("main")
}

0 comments on commit a671bbc

Please sign in to comment.