Introduction
This challenge aims to test your understanding of using channels as function parameters in Golang.
This tutorial is from open-source community. Access the source code
This challenge aims to test your understanding of using channels as function parameters in Golang.
The problem to be solved in this challenge is to modify the given code to ensure that the channels used as function parameters are specified to only send or receive values.
$ go run channel-directions.go
passed message
In this challenge, you learned how to specify if a channel is meant to only send or receive values, which increases the type-safety of the program.