Yes, in golang, you can't stop or kill goroutines directly. The Go team does this intentionally to prevent inconsistent memory states. However, there are ways to kill it from the outside. How to kill running goroutines from outside? Here are all the ways mentioned.