MCPcopy Create free account

hub / github.com/ardanlabs/gotraining / functions

Functions1,474 in github.com/ardanlabs/gotraining

↓ 1 callersFunctiongetUser
GetUser simulates a web call that returns a json document for the specified user.
topics/go/language/functions/example1/example1.go:51
↓ 1 callersFunctionhandleEvent
(e Event)
topics/go/videos/miki/shorts/label/main.go:49
↓ 1 callersFunctionhealthCheck
()
topics/go/videos/miki/building/cgo/main.go:9
↓ 1 callersMethodhide
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1797
↓ 1 callersMethodhide
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2085
↓ 1 callersMethodhide
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3811
↓ 1 callersMethodhide
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4894
↓ 1 callersMethodhours
hours returns the duration as a floating point number of hours.
topics/go/language/methods/example2/example2.go:29
↓ 1 callersFunctioninBounds
(p Point)
topics/go/videos/miki/shorts/for_range/main.go:17
↓ 1 callersFunctioninCI
()
topics/go/videos/miki/shorts/skip/skip_test.go:8
↓ 1 callersMethodinOrder
inOrder traversal the node by the leftmost node to the rightmost nodes regardless of depth.
topics/go/algorithms/data/tree/binary/binary.go:337
↓ 1 callersFunctionincrement
increment declares logins as a pointer variable whose value is always an address and points to values of type int.
topics/go/language/pointers/example3/example3.go:40
↓ 1 callersFunctionincrement
increment declares count as a pointer variable whose value is always an address and points to values of type int. go:noinline
topics/go/language/pointers/example2/example2.go:25
↓ 1 callersFunctionincrement
increment declares count as a pointer variable whose value is always an address and points to values of type int. go:noinline
topics/go/language/pointers/example1/example1.go:24
↓ 1 callersFunctioninitLog
initLog sets the devices for each log type.
topics/go/packages/logging/example2/example2.go:38
↓ 1 callersFunctioninput
input returns a reader that can be used to read a stream of bytes.
topics/go/profiling/blocking/blocking_xtest.go:133
↓ 1 callersMethodinsert
insert adds the node into the tree and makes sure the tree stays balanced.
topics/go/algorithms/data/tree/binary/binary.go:138
↓ 1 callersFunctioninsertTrans
insertTrans simulates a database operation.
topics/go/concurrency/channels/example4/example4.go:82
↓ 1 callersFunctioninsertUser
insertUser simulates a database operation.
topics/go/concurrency/channels/example4/example4.go:67
↓ 1 callersFunctioninspectSlice
inspectSlice exposes the slice header for review.
topics/go/language/slices/example2/example2.go:24
↓ 1 callersFunctioninterpolationSearchIterative
interpolationSearchIterative this algorithm is improved the binarysearch with the `iterative` method, for finding the middle index, it has another pos
topics/go/algorithms/searches/interpolationsearch/interpolationsearch.go:8
↓ 1 callersFunctioninterpolationSearchRecursive
interpolationSearchRecursive this algorithm is improved the binarysearch algorithm with the `recursive` method, for finding the middle index, it has a
topics/go/algorithms/searches/interpolationsearch/interpolationsearch.go:50
↓ 1 callersMethodisProblem
isProblem checks in a safe way if there is a problem.
topics/go/concurrency/patterns/advanced/main.go:35
↓ 1 callersFunctionisSick
isSick returns true if a randomly sampled person is sick.
topics/go/algorithms/simulations/sick/sick.go:17
↓ 1 callersMethodisWithContent
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3866
↓ 1 callersFunctionjumpSearch
jumpSearch takes a sorted list of numbers and uses the `binarysearch` and `linearsearch` algorithms to find the target. the worst cast | O(√n) the bes
topics/go/algorithms/searches/jumpsearch/jumpsearch.go:12
↓ 1 callersMethodlast
()
topics/go/generics/02-underlying-type/generic.go:26
↓ 1 callersMethodlast
()
topics/go/generics/02-underlying-type/generic.go:42
↓ 1 callersMethodlongestShortestPath
(startID string)
topics/go/profiling/exercises/graphblog/node.go:60
↓ 1 callersFunctionlowercase
lowercase displays the set of lowercase letters three times.
topics/go/concurrency/goroutines/example1/example1.go:48
↓ 1 callersFunctionmakePlot
makePlot creates and saves a plot of the overall latencies differenced from the unbuffered channel.
topics/go/profiling/blocking/blocking_xtest.go:162
↓ 1 callersFunctionmimicError
mimicError is a function that simulates an error for testing the code.
topics/go/language/functions/advanced/example1/example1.go:63
↓ 1 callersFunctionmockServer
mockServer returns a pointer to a server to handle the mock get call.
topics/go/testing/tests/example3/example3_test.go:62
↓ 1 callersFunctionnewClient
newClient create a new client for an incoming connection.
topics/go/concurrency/patterns/chat/chat.go:88
↓ 1 callersFunctionnumCPU
numCPU uses the same number of goroutines that we have cores to perform the merge sort.
topics/go/testing/benchmarks/validate/validate_test.go:102
↓ 1 callersFunctiononDOMContentLoaded
topics/go/videos/miki/building/embed/static/bootstrap.js:244
↓ 1 callersFunctionoperate
When it's important that the slice being passed in is exactly the same as the slice being returned, use a slice contraint. This ensures that the resul
topics/go/generics/09-slice-constraints/generic.go:25
↓ 1 callersFunctionoperate2
If you don't care about the constraint defined above, then operate2 provides a simpler form. Operate2 still works because you can assign a slice of so
topics/go/generics/09-slice-constraints/generic.go:40
↓ 1 callersFunctionpartition
partition it takes a portion of an array then sort it.
topics/go/algorithms/sorting/quick/quick.go:25
↓ 1 callersFunctionperformQueries
performQueries tests the resource pool of connections.
topics/go/concurrency/patterns/pool/main/main.go:50
↓ 1 callersFunctionpoolWork
(size int, work poolWorkFn[Input, Result])
topics/go/generics/10-channels/generic.go:37
↓ 1 callersMethodpostOrder
postOrder traversal the node by the leftmost node then its sibling then up to its parent, recursively.
topics/go/algorithms/data/tree/binary/binary.go:347
↓ 1 callersMethodpreOrder
preOrder traverses the node by traversing the child nodes recursively.
topics/go/algorithms/data/tree/binary/binary.go:327
↓ 1 callersMethodprint
()
topics/go/language/interfaces/example4/example4.go:12
↓ 1 callersFunctionprintNumbers
============================================================================= These functions are concrete implementations of print functions that can
topics/go/generics/01-function/generic.go:13
↓ 1 callersFunctionprintStrings
(strings []string)
topics/go/generics/01-function/generic.go:21
↓ 1 callersFunctionprocess
process looks for source code links in a given markdown file. For every link that is found, the source code is run through the playground to generate
tools/mpl/main.go:54
↓ 1 callersFunctionprocess
(fc FetchCounter)
topics/go/language/embedding/exercises/template1/template1.go:52
↓ 1 callersFunctionprocess
(arg string, h hash.Hash)
topics/go/exercises/sha256sum/exercise/main.go:45
↓ 1 callersFunctionprocess
(repo string, c contributorLister)
topics/go/exercises/contributors/part2/main.go:36
↓ 1 callersFunctionprocessEvents
(ctx context.Context, ch <-chan Event)
topics/go/videos/miki/shorts/label/main.go:11
↓ 1 callersFunctionprocessor
processor provides the main program logic for the program.
topics/go/concurrency/channels/example5/example5.go:78
↓ 1 callersFunctionpull
============================================================================= pull knows how to pull bulks of data from any Puller.
topics/go/design/composition/decoupling/example3/example3.go:91
↓ 1 callersFunctionpull
============================================================================= pull knows how to pull bulks of data from any Puller.
topics/go/design/composition/decoupling/example6/example6.go:77
↓ 1 callersFunctionpull
============================================================================= pull knows how to pull bulks of data from any Puller.
topics/go/design/composition/decoupling/example2/example2.go:85
↓ 1 callersFunctionpull
============================================================================= pull knows how to pull bulks of data from any Puller.
topics/go/design/composition/decoupling/example4/example4.go:91
↓ 1 callersFunctionpull
============================================================================= pull knows how to pull bulks of data from Xenia.
topics/go/design/composition/decoupling/example1/example1.go:73
↓ 1 callersFunctionpull
============================================================================= pull knows how to pull bulks of data from any Puller.
topics/go/design/composition/decoupling/example5/example5.go:85
↓ 1 callersFunctionrandom
random generates random numbers and stores them into a slice.
topics/go/concurrency/data_race/exercises/exercise1/exercise1.go:52
↓ 1 callersFunctionrandom
random generates random numbers and stores them into a slice.
topics/go/concurrency/data_race/exercises/template1/template1.go:49
↓ 1 callersMethodread
read waits for message and sends it to the chatroom for processing.
topics/go/concurrency/patterns/chat/chat.go:39
↓ 1 callersFunctionreadDatabase
readDatabase performs a pretend database call with a second of latency.
topics/go/packages/context/exercises/exercise1/exercise1.go:96
↓ 1 callersFunctionreader
reader wakes up and iterates over the data slice.
topics/go/profiling/mutex/mutex_test.go:63
↓ 1 callersFunctionreader
reader wakes up and iterates over the data slice.
topics/go/concurrency/data_race/example4/example4.go:78
↓ 1 callersFunctionrecv
recv waits for bytes and adds them up.
topics/go/profiling/blocking/blocking_xtest.go:138
↓ 1 callersFunctionreduceAllocation
reduceAllocation looks to see if memory can be freed to when a bucket has lost a percent of entries.
topics/go/algorithms/data/hash/hash.go:171
↓ 1 callersFunctionremoveEntry
removeEntry performs the physical act of removing an entry from a bucket,
topics/go/algorithms/data/hash/hash.go:150
↓ 1 callersFunctionremoveNamespacedHandlers
(element, events, typeEvent, namespace)
topics/go/videos/miki/building/embed/static/bootstrap.js:507
↓ 1 callersFunctionrender
render generates the HTML response for this route.
topics/go/profiling/project/service/handler.go:79
↓ 1 callersFunctionretrieveFile
retrieveFile can read from a file and process the data.
topics/go/language/interfaces/example0/example0.go:45
↓ 1 callersFunctionretrievePipe
retrievePipe can read from a pipe and process the data.
topics/go/language/interfaces/example0/example0.go:58
↓ 1 callersFunctionretrieveUser
retrieveUser retrieves the user document for the specified user and returns a pointer to a user type value.
topics/go/language/functions/example1/example1.go:34
↓ 1 callersMethodrotateLeftRight
rotateLeftRight turns the node to the left and then right. #5 #5 #4 \ #3 #4 #3 #5 \ / #4 #3
topics/go/algorithms/data/tree/binary/binary.go:221
↓ 1 callersMethodrotateRightLeft
rotateLeftRight turns the node to the left and then right. #3 #3 #4 \ \ / \ #5 #4 #3 #5 \ #4
topics/go/algorithms/data/tree/binary/binary.go:235
↓ 1 callersFunctionroutes
routes sets the routes for the web service.
topics/go/packages/context/exercises/exercise1/exercise1.go:39
↓ 1 callersFunctionroutes
routes sets the routes for the web service.
topics/go/packages/context/exercises/template1/template1.go:27
↓ 1 callersFunctionrun
(f finder)
topics/go/language/interfaces/example6/example6.go:49
↓ 1 callersFunctionrun
run performs the find operation against the concrete data that is passed into the call.
topics/go/language/interfaces/example5/example5.go:45
↓ 1 callersFunctionscore
(n int)
topics/go/videos/miki/shorts/search/main.go:13
↓ 1 callersFunctionsecondCall
secondCall makes a call to a third function and wraps any error.
topics/go/design/error_handling/example6/example6.go:58
↓ 1 callersFunctionsecondCall
secondCall makes a call to a third function and wraps any error.
topics/go/design/error_handling/example7/example7.go:73
↓ 1 callersFunctionsend
send reads the bytes and sends them through the channel.
topics/go/profiling/blocking/blocking_xtest.go:147
↓ 1 callersMethodsendGroupMessage
sendGroupMessage sends a message to all clients in the room.
topics/go/concurrency/patterns/chat/chat.go:114
↓ 1 callersFunctionsendNotification
sendNotification accepts values that implement the notifier interface and sends notifications.
topics/go/language/embedding/example3/example3.go:54
↓ 1 callersFunctionsendNotification
sendNotification accepts values that implement the notifier interface and sends notifications.
topics/go/language/embedding/example4/example4.go:69
↓ 1 callersFunctionsendNotification
sendNotification accepts values that implement the notifier interface and sends notifications.
topics/go/language/interfaces/example2/example2.go:44
↓ 1 callersMethodsetContent
(tip)
topics/go/videos/miki/building/embed/static/bootstrap.js:3884
↓ 1 callersMethodsetElementContent
(element, content)
topics/go/videos/miki/building/embed/static/bootstrap.js:3900
↓ 1 callersFunctionsetFlags
setFlags adds extra information on each log line.
topics/go/packages/logging/example1/example1.go:27
↓ 1 callersFunctionsetFlags
setFlags adds extra information on each log line.
topics/go/packages/logging/exercises/exercise1/exercise1.go:26
↓ 1 callersMethodsetHours
setHours sets the specified number of hours.
topics/go/language/methods/example2/example2.go:24
↓ 1 callersFunctionsetup
()
topics/go/videos/miki/shorts/test_main/main_test.go:29
↓ 1 callersMethodshow
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1724
↓ 1 callersMethodshow
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2044
↓ 1 callersMethodshow
(relatedTarget)
topics/go/videos/miki/building/embed/static/bootstrap.js:2821
↓ 1 callersMethodshow
(relatedTarget)
topics/go/videos/miki/building/embed/static/bootstrap.js:3240
↓ 1 callersFunctionsimulate
simulate run selects sampleSize random people and return the fraction of people actually sick from the total number of people diagnosed as sick.
topics/go/algorithms/simulations/sick/sick.go:35
↓ 1 callersFunctionsimulate
simulate runs n simulation of two game cube rolls. It returns the percentage for each total of first and second roll.
topics/go/algorithms/simulations/catan/catan.go:17
↓ 1 callersFunctionsimulateBirthdayMatches
simulateBirthdayMatches returns true if the same number is selected twice by the random number generator selecting a number between 0 and 365 for a sp
topics/go/algorithms/simulations/birthday/birthday.go:13
↓ 1 callersFunctionsimulateBirthdays
simulateBirthdays returns the fraction of groups that have two people with the same birthday.
topics/go/algorithms/simulations/birthday/birthday.go:30
← previousnext →501–600 of 1,474, ranked by callers