mirror of
https://github.com/MADTeacher/go_basics.git
synced 2025-11-23 21:34:47 +02:00
17 lines
194 B
Go
17 lines
194 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func namedGorutine(number int) int{
|
|
fmt.Printf("%d ", number)
|
|
return number
|
|
}
|
|
|
|
func main() {
|
|
number := go namedGorutine(1)
|
|
time.Sleep(time.Second)
|
|
}
|