DevJourney · code I wrote while learning
main.go
123 Bpackage main
import "fmt"
func greet() {
fmt.Print("Hello!")
}
func main() {
go greet()
fmt.Println("Main thread")
}DevJourney · code I wrote while learning
package main
import "fmt"
func greet() {
fmt.Print("Hello!")
}
func main() {
go greet()
fmt.Println("Main thread")
}