MCPcopy Create free account

hub / github.com/ardanlabs/gotraining / functions

Functions1,474 in github.com/ardanlabs/gotraining

↓ 1 callersFunctionsimulation
simulation runs n games and return the fraction of games where "stay" strategy won and fraction where "switch" strategy won
topics/go/algorithms/simulations/monty/monty.go:25
↓ 1 callersFunctionsingle
single uses a single goroutine to perform the merge sort.
topics/go/testing/benchmarks/validate/validate_test.go:43
↓ 1 callersFunctionstackCopy
stackCopy recursively runs increasing the size of the stack. go:noinline
topics/go/language/pointers/example5/example5.go:20
↓ 1 callersMethodstart
start turns the chatroom on.
topics/go/concurrency/patterns/chat/chat.go:132
↓ 1 callersFunctionstayWinsGame
stayWinsGame is a single simulation of game. It return true if "stay" strategy wins.
topics/go/algorithms/simulations/monty/monty.go:11
↓ 1 callersFunctionstore
store knows how to store bulks of data from any Storer.
topics/go/design/composition/decoupling/example3/example3.go:102
↓ 1 callersFunctionstore
store knows how to store bulks of data from any Storer.
topics/go/design/composition/decoupling/example6/example6.go:88
↓ 1 callersFunctionstore
store knows how to store bulks of data from any Storer.
topics/go/design/composition/decoupling/example2/example2.go:96
↓ 1 callersFunctionstore
store knows how to store bulks of data from any Storer.
topics/go/design/composition/decoupling/example4/example4.go:102
↓ 1 callersFunctionstore
store knows how to store bulks of data into Pillar.
topics/go/design/composition/decoupling/example1/example1.go:84
↓ 1 callersFunctionstore
store knows how to store bulks of data from any Storer.
topics/go/design/composition/decoupling/example5/example5.go:96
↓ 1 callersFunctionstringifyCustomers
(customers []customer)
topics/go/generics/04-behavior-constraint/generic.go:46
↓ 1 callersFunctionstringifyUsers
============================================================================= These functions implement a stringify function that is specific to each
topics/go/generics/04-behavior-constraint/generic.go:38
↓ 1 callersFunctionswapInteger
============================================================================= These functions are concrete versions of a swap function. For each type
topics/go/generics/08-swapping/generic.go:11
↓ 1 callersFunctionswapInterface
============================================================================= This function provides an empty interface solution to perform a generic
topics/go/generics/08-swapping/generic.go:27
↓ 1 callersFunctionswapString
(v1 string, v2 string)
topics/go/generics/08-swapping/generic.go:16
↓ 1 callersFunctionsweep
(numbers []int, currentPass int)
topics/go/algorithms/sorting/bubble/bubble.go:70
↓ 1 callersFunctionteardown
()
topics/go/videos/miki/shorts/test_main/main_test.go:33
↓ 1 callersFunctiontestPanic
testPanic simulates a function that encounters a panic to test our catchPanic function.
topics/go/language/functions/advanced/example1/example1.go:22
↓ 1 callersFunctionthirdCall
thirdCall create an error value we will validate.
topics/go/design/error_handling/example6/example6.go:66
↓ 1 callersFunctionthirdCall
thirdCall create an error value we will validate.
topics/go/design/error_handling/example7/example7.go:81
↓ 1 callersFunctiontoType
topics/go/videos/miki/building/embed/static/bootstrap.js:42
↓ 1 callersMethodtoggle
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1716
↓ 1 callersMethodtoggle
(event)
topics/go/videos/miki/building/embed/static/bootstrap.js:3681
↓ 1 callersFunctionunBuffered
With unbuffered channels, the receive happens before the corresponding send. The write to a happens before the receive on c, which happens before the
topics/go/concurrency/channels/advanced/example1/example1.go:20
↓ 1 callersFunctionunlimited
unlimited uses a goroutine for every split to perform the merge sort.
topics/go/testing/benchmarks/validate/validate_test.go:64
↓ 1 callersMethodupdateAttachment
(attachment)
topics/go/videos/miki/building/embed/static/bootstrap.js:3937
↓ 1 callersFunctionupdateUser
updateUser updates the specified user document.
topics/go/language/functions/example2/example2.go:47
↓ 1 callersFunctionuppercase
uppercase displays the set of uppercase letters three times.
topics/go/concurrency/goroutines/example1/example1.go:59
↓ 1 callersFunctionurlSig
(ctx context.Context, url string)
topics/go/algorithms/md5/dlhash.go:12
↓ 1 callersFunctionvalidate
validate performs data validation on any struct type value.
topics/go/packages/reflection/exercises/exercise1/exercise1.go:36
↓ 1 callersFunctionvalidate
validate performs data validation on any struct type value.
topics/go/packages/reflection/tag/tag.go:44
↓ 1 callersFunctionvalidateAddr
(addr string)
topics/go/videos/miki/interfaces/flag/flag.go:31
↓ 1 callersFunctionvalueOf
(c Celsius)
topics/go/videos/miki/interfaces/escape/weather/bench_test.go:17
↓ 1 callersFunctionvalueOfIface
(v Value)
topics/go/videos/miki/interfaces/escape/weather/bench_test.go:21
↓ 1 callersFunctionwaitForResult
waitForResult: In this pattern, the parent goroutine waits for the child goroutine to finish some work to signal the result.
topics/go/concurrency/channels/example1/example1.go:50
↓ 1 callersFunctionwebCall
webCall performs a web operation.
topics/go/design/error_handling/example2/example2.go:42
↓ 1 callersFunctionwebCall
webCall performs a web operation.
topics/go/design/error_handling/example1/example1.go:40
↓ 1 callersFunctionwrapHandler
(h Handler)
topics/go/language/pointers/flaws/example2/example2_http_test.go:26
↓ 1 callersMethodwrite
write is a goroutine to handle processing outgoing messages to this client.
topics/go/concurrency/patterns/chat/chat.go:71
↓ 1 callersFunctionwriter
writer adds 10 new strings to the slice in random intervals.
topics/go/profiling/mutex/mutex_test.go:51
↓ 1 callersFunctionwriter
writer adds a new string to the slice in random intervals.
topics/go/concurrency/data_race/example4/example4.go:59
MethodAdd
Add is using a value receiver and returning a value of type Time. This method is using value semantics for Time.
topics/go/language/methods/example5/example5.go:77
MethodAdd
(a, b *Float64)
topics/go/generics/12-pointer-methods/generic.go:16
MethodAddBetter
AddBetter uses the `n` variable for the node. This variable is better because it doesn't get in the way of readability. Now the switch/case logic beco
topics/go/language/control_flow/example3/example3.go:42
MethodAddOk
AddOk uses the `newNode` variable for the node. This variable name gets in the way of readability. It becomes the focal point when trying to read the
topics/go/language/control_flow/example3/example3.go:20
MethodAmount
()
topics/go/videos/miki/interfaces/escape/weather/weather.go:13
MethodBehaviorAsContext
BehaviorAsContext shows how to check for the behavior of an interface that can be returned from the net package.
topics/go/design/error_handling/example4/example4.go:68
FunctionBenchmarkAlgorithmFour
Capture the time it takes to execute algorithm four.
topics/go/packages/io/example4/example4_test.go:67
FunctionBenchmarkAlgorithmOne
Capture the time it takes to execute algorithm one.
topics/go/packages/io/example4/example4_test.go:25
FunctionBenchmarkAlgorithmOne
Capture the time it takes to execute algorithm one.
topics/go/profiling/memcpu/stream_test.go:21
FunctionBenchmarkAlgorithmThree
Capture the time it takes to execute algorithm three.
topics/go/packages/io/example4/example4_test.go:53
FunctionBenchmarkAlgorithmTwo
Capture the time it takes to execute algorithm two.
topics/go/packages/io/example4/example4_test.go:39
FunctionBenchmarkAlgorithmTwo
Capture the time it takes to execute algorithm two.
topics/go/profiling/memcpu/stream_test.go:29
FunctionBenchmarkAssignmentIndirect
(b *testing.B)
topics/go/language/pointers/flaws/example1/example1_test.go:5
FunctionBenchmarkColumnTraverse
Capture the time it takes to perform a column traversal.
topics/go/testing/benchmarks/caching/caching_test.go:25
FunctionBenchmarkConcrete
(b *testing.B)
topics/go/videos/miki/interfaces/escape/weather/bench_test.go:25
FunctionBenchmarkConcurrent
(b *testing.B)
topics/go/testing/benchmarks/cpu-bound/cpu_test.go:33
FunctionBenchmarkConcurrent
(b *testing.B)
topics/go/testing/benchmarks/io-bound/io_test.go:33
FunctionBenchmarkConcurrentAgain
(b *testing.B)
topics/go/testing/benchmarks/cpu-bound/cpu_test.go:45
FunctionBenchmarkConcurrentAgain
(b *testing.B)
topics/go/testing/benchmarks/io-bound/io_test.go:45
FunctionBenchmarkConcurrentBounded
(b *testing.B)
topics/go/algorithms/fun/freq/freq_test.go:74
FunctionBenchmarkConcurrentBoundedChannel
(b *testing.B)
topics/go/algorithms/fun/freq/freq_test.go:80
FunctionBenchmarkConcurrentUnlimited
(b *testing.B)
topics/go/algorithms/fun/freq/freq_test.go:86
FunctionBenchmarkDiameter
(b *testing.B)
topics/go/profiling/exercises/graphblog/node_test.go:91
FunctionBenchmarkFormat
BenchmarkFormat provides performance numbers for the strconv.FormatInt function
topics/go/testing/benchmarks/exercises/exercise1/bench_test.go:32
FunctionBenchmarkGlobal
BenchmarkGlobal tests the performance of 8 goroutines incrementing the global counter in parallel.
topics/go/testing/benchmarks/falseshare/falseshare_test.go:23
FunctionBenchmarkHandler
(b *testing.B)
topics/go/language/pointers/flaws/example2/example2_http_test.go:8
FunctionBenchmarkHeapSort
BenchmarkHeapSort a simple benchmark for the heap sort algorithm.
topics/go/algorithms/sorting/heap/heap_test.go:57
FunctionBenchmarkIface
(b *testing.B)
topics/go/videos/miki/interfaces/escape/weather/bench_test.go:34
FunctionBenchmarkInsertionSort
BenchmarkInsertionSort a simple benchmark for the insertion sort algorithm.
topics/go/algorithms/sorting/insertion/insertion_test.go:55
FunctionBenchmarkInterfaces
(b *testing.B)
topics/go/language/pointers/flaws/example4/example4_test.go:15
FunctionBenchmarkItoa
BenchmarkItoa provides performance numbers for the strconv.Itoa function
topics/go/testing/benchmarks/exercises/exercise1/bench_test.go:44
FunctionBenchmarkLinkListTraverse
Capture the time it takes to perform a link list traversal.
topics/go/testing/benchmarks/caching/caching_test.go:14
FunctionBenchmarkLiteralFunctions
(b *testing.B)
topics/go/language/pointers/flaws/example2/example2_test.go:7
FunctionBenchmarkLocal
BenchmarkLocal tests the performance of 8 goroutines incrementing their local counter.
topics/go/testing/benchmarks/falseshare/falseshare_test.go:62
FunctionBenchmarkNumCPU
(b *testing.B)
topics/go/testing/benchmarks/validate/validate_test.go:36
FunctionBenchmarkPredictable
BenchmarkPredictable runs the test when the branch is predictable.
topics/go/testing/benchmarks/prediction/prediction_test.go:31
FunctionBenchmarkQuickSort
BenchmarkQuickSort a simple benchmark for the quick sort algorithm.
topics/go/algorithms/sorting/quick/quick_test.go:57
FunctionBenchmarkReverse
(b *testing.B)
topics/go/testing/strings/example4/reverse_test.go:51
FunctionBenchmarkRowTraverse
Capture the time it takes to perform a row traversal.
topics/go/testing/benchmarks/caching/caching_test.go:36
FunctionBenchmarkRssSearch
BenchmarkRssSearch provides support for profiling the search.
topics/go/profiling/project/search/rss_test.go:12
FunctionBenchmarkSelectionSort
BenchmarkSelectionSort a simple benchmark for the selection sort algorithm.
topics/go/algorithms/sorting/selection/selection_test.go:55
FunctionBenchmarkSequential
(b *testing.B)
topics/go/testing/benchmarks/cpu-bound/cpu_test.go:27
FunctionBenchmarkSequential
(b *testing.B)
topics/go/testing/benchmarks/io-bound/io_test.go:27
FunctionBenchmarkSequential
(b *testing.B)
topics/go/algorithms/fun/freq/freq_test.go:68
FunctionBenchmarkSequentialAgain
(b *testing.B)
topics/go/testing/benchmarks/cpu-bound/cpu_test.go:39
FunctionBenchmarkSequentialAgain
(b *testing.B)
topics/go/testing/benchmarks/io-bound/io_test.go:39
FunctionBenchmarkSingle
(b *testing.B)
topics/go/testing/benchmarks/validate/validate_test.go:24
FunctionBenchmarkSliceMapAssignment
(b *testing.B)
topics/go/language/pointers/flaws/example3/example3_test.go:5
FunctionBenchmarkSprint
BenchmarkSprint tests all the Sprint related benchmarks as sub benchmarks.
topics/go/testing/benchmarks/sub/sub_test.go:20
FunctionBenchmarkSprint
BenchmarkSprint tests the performance of using Sprint.
topics/go/testing/benchmarks/basic/basic_test.go:17
FunctionBenchmarkSprintf
BenchmarkSprint tests the performance of using Sprintf.
topics/go/testing/benchmarks/basic/basic_test.go:28
FunctionBenchmarkSprintf
BenchmarkSprintf provides performance numbers for the fmt.Sprintf function
topics/go/testing/benchmarks/exercises/exercise1/bench_test.go:20
FunctionBenchmarkUnknown
(b *testing.B)
topics/go/language/pointers/flaws/example5/example5_test.go:8
FunctionBenchmarkUnlimited
(b *testing.B)
topics/go/testing/benchmarks/validate/validate_test.go:30
FunctionBenchmarkUnpredictable
BenchmarkUnpredictable runs the test when the branch is random.
topics/go/testing/benchmarks/prediction/prediction_test.go:45
MethodClose
()
topics/go/videos/miki/shorts/cleanup/cleanup_test.go:36
MethodClose
()
topics/go/videos/miki/building/embed/db.go:29
MethodClose
Close shutdown the chatroom and closes all connections.
topics/go/concurrency/patterns/chat/chat.go:189
← previousnext →601–700 of 1,474, ranked by callers