What is used in Go to communicate between goroutines?
- Channels
- Mutexes
- Pointers
- Slices
Channels are the preferred way to communicate between goroutines in Go, providing a safe and efficient means of passing data.
Loading...
Related Quiz
- MongoDB uses _______ for defining indexes to improve query performance.
- A Go interface with no methods is called an _______ interface.
- Imagine you are building a Go application to handle configurations. How would you use a map to store and manage configuration settings?
- In Go, the _________ directory is used to define a package that is shared across multiple projects.
- What is the use of the 'new' keyword in Go?