Beginner Go (Golang)
Q6 / 100

What is a channel in Go?

Correct! Well done.

Incorrect.

The correct answer is B) A typed conduit for safe communication between goroutines

B

Correct Answer

A typed conduit for safe communication between goroutines

Explanation

ch := make(chan int) creates an unbuffered channel. Send with ch <- val and receive with val := <-ch. Channels synchronize goroutines.

Progress
6/100