Directories
¶
| Path | Synopsis |
|---|---|
|
advanced
|
|
|
example1
command
Sample program to show the order of channel communication for unbuffered, buffered and closing channels based on the specification.
|
Sample program to show the order of channel communication for unbuffered, buffered and closing channels based on the specification. |
|
This sample program demonstrates the basic channel mechanics for goroutine signaling.
|
This sample program demonstrates the basic channel mechanics for goroutine signaling. |
|
Sample program to show how to use an unbuffered channel to simulate a game of tennis between two goroutines.
|
Sample program to show how to use an unbuffered channel to simulate a game of tennis between two goroutines. |
|
Sample program to show how to use an unbuffered channel to simulate a relay race between four goroutines.
|
Sample program to show how to use an unbuffered channel to simulate a relay race between four goroutines. |
|
This sample program demonstrates how to use a buffered channel to receive results from other goroutines in a guaranteed way.
|
This sample program demonstrates how to use a buffered channel to receive results from other goroutines in a guaranteed way. |
|
This sample program demonstrates how to use a channel to monitor the amount of time the program is running and terminate the program if it runs too long.
|
This sample program demonstrates how to use a channel to monitor the amount of time the program is running and terminate the program if it runs too long. |
|
exercises
|
|
|
exercise1
command
Write a program where two goroutines pass an integer back and forth ten times.
|
Write a program where two goroutines pass an integer back and forth ten times. |
|
exercise2
command
Write a program that uses a fan out pattern to generate 100 random numbers concurrently.
|
Write a program that uses a fan out pattern to generate 100 random numbers concurrently. |
|
exercise3
command
Write a program that uses goroutines to generate up to 100 random numbers.
|
Write a program that uses goroutines to generate up to 100 random numbers. |
|
exercise4
command
Write a program that creates a fixed set of workers to generate random numbers.
|
Write a program that creates a fixed set of workers to generate random numbers. |
|
template1
command
Write a program where two goroutines pass an integer back and forth ten times.
|
Write a program where two goroutines pass an integer back and forth ten times. |
|
template2
command
Write a program that uses a fan out pattern to generate 100 random numbers concurrently.
|
Write a program that uses a fan out pattern to generate 100 random numbers concurrently. |
|
template3
command
Write a program that uses goroutines to generate up to 100 random numbers.
|
Write a program that uses goroutines to generate up to 100 random numbers. |
|
template4
command
Write a program that creates a fixed set of workers to generate random numbers.
|
Write a program that creates a fixed set of workers to generate random numbers. |
Click to show internal directories.
Click to hide internal directories.



