MCPcopy Create free account

hub / github.com/ardanlabs/gotraining / functions

Functions1,474 in github.com/ardanlabs/gotraining

↓ 2 callersFunctionalgOne
algOne is one way to solve the problem.
topics/go/profiling/memcpu/stream.go:80
↓ 2 callersFunctionalgThree
algThree is a third way to solve the problem. Provided by Bill Hathaway https://twitter.com/billhathaway
topics/go/packages/io/example4/example4.go:207
↓ 2 callersFunctionalgTwo
algTwo is a second way to solve the problem. This approach takes an io.Reader to represent an infinite stream. This allows for the algorithm to accept
topics/go/packages/io/example4/example4.go:143
↓ 2 callersFunctionalgTwo
algTwo is a second way to solve the problem. Provided by Tyler Stillwater https://twitter.com/TylerStillwater
topics/go/profiling/memcpu/stream.go:131
↓ 2 callersFunctionassembleInputStream
assembleInputStream combines all the input into a single stream for processing.
topics/go/profiling/memcpu/stream.go:40
↓ 2 callersMethodaverage
average calculates the batting average for a player.
topics/go/language/methods/exercises/exercise1/exercise1.go:20
↓ 2 callersFunctioncheckShutdown
checkShutdown checks the shutdown flag to determine if we have been asked to interrupt processing.
topics/go/concurrency/channels/example5/example5.go:128
↓ 2 callersFunctioncompare
(a int)
topics/go/packages/slices/example6/example6.go:37
↓ 2 callersFunctioncopyBuffer
copyBuffer is the actual implementation of Copy and CopyBuffer. if buf is nil, one is allocated.
topics/go/generics/13-io/generic.go:359
↓ 2 callersFunctioncrunch
crunch is used to perform branch instructions.
topics/go/testing/benchmarks/prediction/prediction_test.go:16
↓ 2 callersFunctiondecodeInt
decodeInt accepts a value of any type and will decode that value to an integer.
topics/go/packages/reflection/inspect/integer/integer.go:28
↓ 2 callersFunctiondiceRoll
diceRoll simulate a dice roll.
topics/go/algorithms/simulations/catan/catan.go:10
↓ 2 callersFunctiondisplay
display can accept and display multiple values of user types.
topics/go/language/slices/example7/example7.go:49
↓ 2 callersFunctiondisplay
display declares u as user pointer variable whose value is always an address and points to values of type user.
topics/go/language/pointers/example3/example3.go:47
↓ 2 callersMethoddisplayName
displayName provides a pretty print view of the name.
topics/go/language/methods/example3/example3.go:16
↓ 2 callersFunctiondoubleLinearSearchIterative
doubleLinearSearchIterative takes a sorted/random list of numbers and uses the `iterative` process to check index by index to find the target in both
topics/go/algorithms/searches/linearsearch/linearsearch.go:45
↓ 2 callersFunctiondoubleLinearSearchRecursive
doubleLinearSearchRecursive takes a sorted/random list of numbers and uses the `recursive` process to check index by index to find the target in both
topics/go/algorithms/searches/linearsearch/linearsearch.go:74
↓ 2 callersFunctionexecuteAfterTransition
(callback, transitionElement, waitForTransition = true)
topics/go/videos/miki/building/embed/static/bootstrap.js:286
↓ 2 callersFunctionfindHandler
(events, handler, delegationSelector = null)
topics/go/videos/miki/building/embed/static/bootstrap.js:421
↓ 2 callersFunctionfoo
(i Iface)
topics/go/language/pointers/flaws/example4/example4_test.go:30
↓ 2 callersFunctionfraction
fraction return a/b as float
topics/go/algorithms/simulations/monty/monty.go:19
↓ 2 callersFunctiongenerateList
(totalNumbers int)
topics/go/testing/benchmarks/cpu-bound/cpu.go:28
↓ 2 callersFunctiongenerateList
(totalDocs int)
topics/go/testing/benchmarks/io-bound/io.go:25
↓ 2 callersFunctiongenerateList
(totalNumbers int)
topics/go/algorithms/sorting/bubble/bubble.go:26
↓ 2 callersFunctiongenerateSortList
generateSortList create a sorted list of number.
topics/go/algorithms/searches/jumpsearch/jumpsearch_test.go:9
↓ 2 callersFunctiongenerateSortList
generateSortList create a sorted list of number.
topics/go/algorithms/searches/binarysearch/binarysearch_test.go:11
↓ 2 callersFunctiongenerateSortList
generateSortList create a sorted list of number.
topics/go/algorithms/searches/interpolationsearch/interpolationsearch_test.go:11
↓ 2 callersFunctiongetEvent
(element)
topics/go/videos/miki/building/embed/static/bootstrap.js:377
↓ 2 callersFunctiongetNextActiveElement
(list, activeElement, shouldGetNext, isCycleAllowed)
topics/go/videos/miki/building/embed/static/bootstrap.js:326
↓ 2 callersFunctiongetSelector
topics/go/videos/miki/building/embed/static/bootstrap.js:64
↓ 2 callersFunctiongetTime
(name string, r *http.Request)
topics/go/videos/miki/building/embed/httpd.go:23
↓ 2 callersFunctiongetTypeEvent
(event)
topics/go/videos/miki/building/embed/static/bootstrap.js:517
↓ 2 callersFunctiongetUidEvent
* ------------------------------------------------------------------------ * Private methods * -------------------------------------------------
topics/go/videos/miki/building/embed/static/bootstrap.js:373
↓ 2 callersFunctiongetUser
getUser returns a pointer of type user.
topics/go/language/functions/example3/example3.go:46
↓ 2 callersFunctiongetjQuery
()
topics/go/videos/miki/building/embed/static/bootstrap.js:230
↓ 2 callersFunctiongoroutine
goroutine simulates sharing a value.
topics/go/concurrency/channels/exercises/exercise1/exercise1.go:44
↓ 2 callersFunctiongrabString
grabString knows how to take the specified bytes and convert those bytes into a string.
topics/go/testing/fuzzing/exercises/exercise1/exercise1.go:70
↓ 2 callersFunctionindex
============================================================================= The index function declares that the value of type T must be compliant w
topics/go/generics/05-type-constraint/generic.go:27
↓ 2 callersFunctioninsertionSort
insertionSort takes a random list of numbers and uses the `iterative` process to sort it and return the sorted list. - Time Complexity O(n^2) - Auxili
topics/go/algorithms/sorting/insertion/insertion.go:8
↓ 2 callersFunctionisAlive
(pid int)
topics/go/videos/miki/shorts/is_alive/main.go:11
↓ 2 callersFunctionlinearSearchIterative
linearSearchIterative takes a sorted/random list of numbers and uses the `iterative` process to check index by index to find the target. - the worst c
topics/go/algorithms/searches/linearsearch/linearsearch.go:9
↓ 2 callersFunctionlinearSearchRecursive
linearSearchRecursive takes a sorted/random list of numbers and uses the `recursive` process to check index by index to find the target.
topics/go/algorithms/searches/linearsearch/linearsearch.go:26
↓ 2 callersFunctionmatch
(list []T, find T)
topics/go/generics/05-type-constraint/generic.go:75
↓ 2 callersFunctionmoveLargest
moveLargest starts at the index positions specified in the list and attempts to move the largest number it can find to that position in the list.
topics/go/algorithms/sorting/heap/heap.go:54
↓ 2 callersFunctionnewGraph
()
topics/go/profiling/exercises/graphblog/node.go:26
↓ 2 callersFunctionnewUser
newUser creates and returns pointers of user type values.
topics/go/language/functions/exercises/exercise1/exercise1.go:21
↓ 2 callersMethodnext
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1193
↓ 2 callersFunctionnormalizeData
* -------------------------------------------------------------------------- * Bootstrap (v5.1.3): dom/manipulator.js * Licensed under MIT (http
topics/go/videos/miki/building/embed/static/bootstrap.js:943
↓ 2 callersFunctionnormalizeParams
(originalTypeEvent, handler, delegationFn)
topics/go/videos/miki/building/embed/static/bootstrap.js:435
↓ 2 callersMethodnotify
notify implements a method notifies admins of different events.
topics/go/language/embedding/example4/example4.go:38
↓ 2 callersMethodnotify
notify implements a method with a value receiver.
topics/go/language/methods/example1/example1.go:19
↓ 2 callersFunctionoffset
(element)
topics/go/videos/miki/building/embed/static/bootstrap.js:994
↓ 2 callersFunctiononeChanceIn
oneChanceIn returns true one in n times.
topics/go/algorithms/simulations/sick/sick.go:12
↓ 2 callersFunctionplayer
player simulates a person playing the game of tennis.
topics/go/concurrency/channels/example2/example2.go:47
↓ 2 callersFunctionprint
============================================================================= This function provides a generics solution which allows a slice of any t
topics/go/generics/01-function/generic.go:81
↓ 2 callersFunctionprintAssert
============================================================================= This function provides an empty interface solution which uses type asser
topics/go/generics/01-function/generic.go:35
↓ 2 callersFunctionprintHashes
printHashes calculates the sha1 hash for a range of numbers and prints each in hex encoding.
topics/go/concurrency/goroutines/example2/example2.go:53
↓ 2 callersFunctionprintReflect
============================================================================= This function provides a reflection solution which allows a slice of any
topics/go/generics/01-function/generic.go:56
↓ 2 callersFunctionprocess
(fc FetchCounter)
topics/go/language/embedding/exercises/exercise1/exercise1.go:82
↓ 2 callersFunctionprocess
(w io.Writer, repo string, c contributorLister)
topics/go/exercises/contributors/part3/main.go:37
↓ 2 callersFunctionquickSort
quickSort is an in-place sorting algorithm. It takes a random list of numbers, and uses the `recursive` process to divides it into partitions then sor
topics/go/algorithms/sorting/quick/quick.go:8
↓ 2 callersFunctionread
(doc string)
topics/go/testing/benchmarks/io-bound/io.go:33
↓ 2 callersMethodreadCloseError
()
topics/go/generics/13-io/generic.go:577
↓ 2 callersMethodrefresh
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4431
↓ 2 callersMethodreset
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2468
↓ 2 callersFunctionretrieve
retrieve can read any device and process the data.
topics/go/language/interfaces/example1/example1.go:50
↓ 2 callersFunctionsanitizeHtml
(unsafeHtml, allowList, sanitizeFn)
topics/go/videos/miki/building/embed/static/bootstrap.js:3505
↓ 2 callersFunctionselectionSortIterative
selectionSortIterative takes a random list of numbers and uses the `iterative` process to sort it and return the sorted list.
topics/go/algorithms/sorting/selection/selection.go:6
↓ 2 callersFunctionsendResponse
sendResponse marshals the provided value into json and returns that back to the caller.
topics/go/packages/context/exercises/exercise1/exercise1.go:110
↓ 2 callersMethodsetAge
setAge sets the age and displays the value.
topics/go/language/methods/example3/example3.go:21
↓ 2 callersFunctionstream
stream performs the moving of the data stream from one goroutine to the other.
topics/go/profiling/blocking/blocking_xtest.go:100
↓ 2 callersFunctionstringify
============================================================================= This function provides a generics solution which allows a slice of some
topics/go/generics/04-behavior-constraint/generic.go:111
↓ 2 callersFunctionstringifyAssert
============================================================================= This function provides an empty interface solution which uses type asser
topics/go/generics/04-behavior-constraint/generic.go:61
↓ 2 callersFunctionstringifyReflect
============================================================================= This function provides a reflection solution which allows a slice of any
topics/go/generics/04-behavior-constraint/generic.go:85
↓ 2 callersMethodto
(index)
topics/go/videos/miki/building/embed/static/bootstrap.js:1240
↓ 2 callersFunctiontriggerTransitionEnd
topics/go/videos/miki/building/embed/static/bootstrap.js:126
↓ 2 callersMethodupdate
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3859
↓ 2 callersFunctionvalidateURL
(url string)
topics/go/videos/miki/shorts/rename_import/main.go:8
↓ 2 callersFunctionwrapFn
topics/go/videos/miki/building/embed/static/bootstrap.js:461
↓ 2 callersMethodwriteCloseError
()
topics/go/generics/13-io/generic.go:616
↓ 1 callersMethodAcquire
Acquire retrieves a resource from the pool.
topics/go/concurrency/patterns/pool/pool.go:45
↓ 1 callersMethodAddSort
AddSort adds a node based on lexical ordering.
topics/go/algorithms/data/list/list.go:169
↓ 1 callersMethodByTime
(start, end time.Time)
topics/go/videos/miki/building/embed/db.go:39
↓ 1 callersFunctionCause
Cause iterates through all the wrapped errors until the root error value is reached.
topics/go/design/error_handling/example7/example7.go:24
↓ 1 callersMethodCloseRead
(err error)
topics/go/generics/13-io/generic.go:585
↓ 1 callersMethodCloseWithError
CloseWithError closes the reader; subsequent writes to the write half of the pipe will return the error err. CloseWithError never overwrites the prev
topics/go/generics/13-io/generic.go:658
↓ 1 callersMethodCloseWithError
CloseWithError closes the writer; subsequent reads from the read half of the pipe will return no Ts and the error err, or EOF if err is nil. CloseWit
topics/go/generics/13-io/generic.go:688
↓ 1 callersMethodCloseWrite
(err error)
topics/go/generics/13-io/generic.go:624
↓ 1 callersFunctionColumnTraverse
ColumnTraverse traverses the matrix linearly down each column.
topics/go/testing/benchmarks/caching/caching.go:74
↓ 1 callersFunctionConcurrentBounded
ConcurrentBounded uses a concurrent algorithm based on a bounded fan out and no channels.
topics/go/algorithms/fun/freq/freq.go:48
↓ 1 callersFunctionConcurrentBoundedChannel
ConcurrentBoundedChannel uses a concurrent algorithm based on a bounded fan out using a channel.
topics/go/algorithms/fun/freq/freq.go:92
↓ 1 callersFunctionConcurrentUnlimited
ConcurrentUnlimited uses a concurrent algorithm based on an unlimited fan out pattern.
topics/go/algorithms/fun/freq/freq.go:23
↓ 1 callersFunctionConnectDB
()
topics/go/videos/miki/shorts/cleanup/cleanup_test.go:32
↓ 1 callersFunctionCopy
Copy knows how to pull and store data from any System.
topics/go/design/composition/decoupling/example3/example3.go:113
↓ 1 callersFunctionCopy
Copy knows how to pull and store data from any System.
topics/go/design/composition/decoupling/example6/example6.go:99
↓ 1 callersFunctionCopy
Copy knows how to pull and store data from the System.
topics/go/design/composition/decoupling/example2/example2.go:107
↓ 1 callersFunctionCopy
Copy knows how to pull and store data from any System.
topics/go/design/composition/decoupling/example4/example4.go:113
↓ 1 callersFunctionCopy
Copy knows how to pull and store data from the System.
topics/go/design/composition/decoupling/example1/example1.go:95
↓ 1 callersFunctionCopy
Copy knows how to pull and store data from any System.
topics/go/design/composition/decoupling/example5/example5.go:107
↓ 1 callersFunctionCopy
Copy copies from src to dst until either EOF is reached on src or an error occurs. It returns the number of bytes copied and the first error encounter
topics/go/generics/13-io/generic.go:339
← previousnext →201–300 of 1,474, ranked by callers