Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyGoselect statementSingle-choice MCQ

What does a select statement do when it has only a default case and no other case is ready?

ch := make(chan int) select { case v := <-ch: fmt.Println("got", v) default: fmt.Println("nothing ready") }