Directories ¶
Path | Synopsis |
---|---|
concurrency
|
|
channels/example2
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. |
channels/example4
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. |
data_race/example2
Sample program to show how to use the atomic package to provide safe access to numeric types.
|
Sample program to show how to use the atomic package to provide safe access to numeric types. |
goroutines/example1
Sample program to show how to create goroutines and how the scheduler behaves.
|
Sample program to show how to create goroutines and how the scheduler behaves. |
goroutines/example4
Sample program to show you need to validate your benchmark results.
|
Sample program to show you need to validate your benchmark results. |
patterns/logger
Package logger shows a pattern of using a buffer to handle log write continuity by dealing with write latencies by throwing away log data.
|
Package logger shows a pattern of using a buffer to handle log write continuity by dealing with write latencies by throwing away log data. |
patterns/pool
Package pool manages a user defined set of resources.
|
Package pool manages a user defined set of resources. |
ds
|
|
packages
|
|
context/example1
Sample program to show how to store and retrieve values from a context.
|
Sample program to show how to store and retrieve values from a context. |
context/example2
Sample program to show how to use the WithCancel function.
|
Sample program to show how to use the WithCancel function. |
context/example3
Sample program to show how to use the WithDeadline function.
|
Sample program to show how to use the WithDeadline function. |
context/example4
Sample program to show how to use the WithTimeout function of the context package.
|
Sample program to show how to use the WithTimeout function of the context package. |
context/example5
Sample program that implements a web request with a context that is used to timeout the request if it takes too long.
|
Sample program that implements a web request with a context that is used to timeout the request if it takes too long. |
profiling
|
|
blocking
Sample program to see what a trace will look like for basic channel latencies.
|
Sample program to see what a trace will look like for basic channel latencies. |
godebug
Sample program that implement a simple web service that will allow us to explore how to use the GODEBUG variable.
|
Sample program that implement a simple web service that will allow us to explore how to use the GODEBUG variable. |
stack_trace/example1
Sample program to show how to read a stack trace.
|
Sample program to show how to read a stack trace. |
stack_trace/example2
Sample program to show how to read a stack trace when it packs values.
|
Sample program to show how to read a stack trace when it packs values. |
testing
|
|
benchmarks/fuzzing/example1
Package api provides an example on how to use go-fuzz.
|
Package api provides an example on how to use go-fuzz. |
Click to show internal directories.
Click to hide internal directories.