Skip to content

Commit

Permalink
Starting with goroutines
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingCrisis committed Feb 14, 2023
1 parent 938a536 commit 8d8c7f1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 25_goroutines.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package main

import(
"fmt"
)

func main(){
// Spin of a green thread and run the function
go sayHello()
}

func sayHello(){
fmt.Println("Hello")
}

0 comments on commit 8d8c7f1

Please sign in to comment.