Directories ¶
Path | Synopsis |
---|---|
This example is the same as 04, just that the checking of data is done with a range loop instead of checking if the loop is closed or not.
|
This example is the same as 04, just that the checking of data is done with a range loop instead of checking if the loop is closed or not. |
testing file reading in one go routine and sending whats read to other goroutine
|
testing file reading in one go routine and sending whats read to other goroutine |
Test how to pass pointers to array via a channel, change it, and check if the change is reflected in the Go routine where the array was created.
|
Test how to pass pointers to array via a channel, change it, and check if the change is reflected in the Go routine where the array was created. |
The idea here is to create buffer, and if the buffer is saturated, then drop the request.
|
The idea here is to create buffer, and if the buffer is saturated, then drop the request. |
Spawn up a bunch of goroutines who want to put a single nr.
|
Spawn up a bunch of goroutines who want to put a single nr. |
Make a buffered reader of channel.
|
Make a buffered reader of channel. |
Make a buffered reader of channel.
|
Make a buffered reader of channel. |
Example for checking if a channel is closed.
|
Example for checking if a channel is closed. |
chan struct{} are used for signaling.
|
chan struct{} are used for signaling. |
Testing the concept of channels who contains another channel of struct{} for signaling.
|
Testing the concept of channels who contains another channel of struct{} for signaling. |
Testing the concept of channels who contains another channel of struct{} for signaling.
|
Testing the concept of channels who contains another channel of struct{} for signaling. |
The purpose of this test is to learn more on context and cancelation of http request and responses.
|
The purpose of this test is to learn more on context and cancelation of http request and responses. |
Example is for testing out setting channels to nil.
|
Example is for testing out setting channels to nil. |
Click to show internal directories.
Click to hide internal directories.