goroutine golang code example
Example 1: goroutine
package main
Example 2: run thread golang
func f(s string){
fmt.Println(s)
}
func main(){
go f("goroutine")
}
package main
func f(s string){
fmt.Println(s)
}
func main(){
go f("goroutine")
}