Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main
import "fmt"
func main() {
messages := make(chan string)
go func() {
messages <- "Hello from goroutine!"
}()
msg := <-messages
fmt.Println("Received:", msg)
}Coding works best on desktop or with an external keyboard.