Documentation ¶
Index ¶
- func DisplayMessage(msg string)
- func DisplayMessageWithChannel(ch chan string)
- func Exit(ch chan<- bool)
- func ReadFromIntegerChannel(ch chan int)
- func ReadFromUnbufferedIntChannel(ch chan int)
- func RecvReadOnlyChannel(ch <-chan int)
- func SendWriteOnlyChannel(ch chan<- int, numVals int)
- func SimpleDisplayMessage()
- func WriteToIntegerChannel(ch chan int, iterations int)
- func WriteToUnbufferedIntChannel(ch chan int, numIters int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayMessage ¶
func DisplayMessage(msg string)
func DisplayMessageWithChannel ¶
func DisplayMessageWithChannel(ch chan string)
func ReadFromIntegerChannel ¶
func ReadFromIntegerChannel(ch chan int)
func ReadFromUnbufferedIntChannel ¶
func ReadFromUnbufferedIntChannel(ch chan int)
// reading from a channnel returns data, and a boolean to check if closed. data, ok := <-ch
if !ok { fmt.Println("channel closed") }
func RecvReadOnlyChannel ¶
func RecvReadOnlyChannel(ch <-chan int)
func SendWriteOnlyChannel ¶
func SimpleDisplayMessage ¶
func SimpleDisplayMessage()
func WriteToIntegerChannel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.