I have two goroutine like,
Routine 1 {
// do something
}
Routine 2 {
// do something
}
main {
// do something
}
Is it possible from in routine 1, if some condition met, stop whole program execution ? Stop execution of main and Routine 2 ? Can give a simple example.
For example,