This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Answer these questions to demonstrate what you've learned:
What's the correct syntax to create a goroutine?
func (){}()
go launch()
goroutine launch()
thread launch()
What's the purpose of using channels in Go?
To communicate properly within goroutines and avoid sharing memory for communication purposes.
It's just another way of creating goroutines.
To send data when doing HTTP calls to another API.
To communicate between classes.
What's a particular feature of unbuffered channels?
Channels that are dynamic. They can grow as you need automatically.
Sending data and receiving data in channels are blocking operations.
Channels that you can pass by reference only.
How do you send data to a channel?
ch = "Hi"
ch <- "Hi"
send(ch, "Hi")
How do you receive data from a channel?
res := <- ch
res := get(ch)
res := ch<-
You must answer all questions before checking your work.
Continue
Was this page helpful?