I wonder what happens to goroutines called from another goroutine when it returns. Do they continue running or get terminated? Here is a sample code to show what I mean:
func func() {
// Doing something
}
func func2() {
go func()
// Doing things that end with a return
}
func main() {
go func2()
}
what happens to func() goroutine when func2() goroutine returns?