[Solved] How does a goroutine behave when it creates a channel [closed]


Yes, every time you create a channel with make, you get a new channel.

If you want multiple goroutines to share a channel instead, you have to create the channel in the parent goroutine and pass it to the child goroutines.

solved How does a goroutine behave when it creates a channel [closed]