Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ardanlabs/gotraining
/ functions
Functions
1,474 in github.com/ardanlabs/gotraining
⨍
Functions
1,474
◇
Types & classes
404
↓ 2 callers
Function
algOne
algOne is one way to solve the problem.
topics/go/profiling/memcpu/stream.go:80
↓ 2 callers
Function
algThree
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 callers
Function
algTwo
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 callers
Function
algTwo
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 callers
Function
assembleInputStream
assembleInputStream combines all the input into a single stream for processing.
topics/go/profiling/memcpu/stream.go:40
↓ 2 callers
Method
average
average calculates the batting average for a player.
topics/go/language/methods/exercises/exercise1/exercise1.go:20
↓ 2 callers
Function
checkShutdown
checkShutdown checks the shutdown flag to determine if we have been asked to interrupt processing.
topics/go/concurrency/channels/example5/example5.go:128
↓ 2 callers
Function
compare
(a int)
topics/go/packages/slices/example6/example6.go:37
↓ 2 callers
Function
copyBuffer
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 callers
Function
crunch
crunch is used to perform branch instructions.
topics/go/testing/benchmarks/prediction/prediction_test.go:16
↓ 2 callers
Function
decodeInt
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 callers
Function
diceRoll
diceRoll simulate a dice roll.
topics/go/algorithms/simulations/catan/catan.go:10
↓ 2 callers
Function
display
display can accept and display multiple values of user types.
topics/go/language/slices/example7/example7.go:49
↓ 2 callers
Function
display
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 callers
Method
displayName
displayName provides a pretty print view of the name.
topics/go/language/methods/example3/example3.go:16
↓ 2 callers
Function
doubleLinearSearchIterative
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 callers
Function
doubleLinearSearchRecursive
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 callers
Function
executeAfterTransition
(callback, transitionElement, waitForTransition = true)
topics/go/videos/miki/building/embed/static/bootstrap.js:286
↓ 2 callers
Function
findHandler
(events, handler, delegationSelector = null)
topics/go/videos/miki/building/embed/static/bootstrap.js:421
↓ 2 callers
Function
foo
(i Iface)
topics/go/language/pointers/flaws/example4/example4_test.go:30
↓ 2 callers
Function
fraction
fraction return a/b as float
topics/go/algorithms/simulations/monty/monty.go:19
↓ 2 callers
Function
generateList
(totalNumbers int)
topics/go/testing/benchmarks/cpu-bound/cpu.go:28
↓ 2 callers
Function
generateList
(totalDocs int)
topics/go/testing/benchmarks/io-bound/io.go:25
↓ 2 callers
Function
generateList
(totalNumbers int)
topics/go/algorithms/sorting/bubble/bubble.go:26
↓ 2 callers
Function
generateSortList
generateSortList create a sorted list of number.
topics/go/algorithms/searches/jumpsearch/jumpsearch_test.go:9
↓ 2 callers
Function
generateSortList
generateSortList create a sorted list of number.
topics/go/algorithms/searches/binarysearch/binarysearch_test.go:11
↓ 2 callers
Function
generateSortList
generateSortList create a sorted list of number.
topics/go/algorithms/searches/interpolationsearch/interpolationsearch_test.go:11
↓ 2 callers
Function
getEvent
(element)
topics/go/videos/miki/building/embed/static/bootstrap.js:377
↓ 2 callers
Function
getNextActiveElement
(list, activeElement, shouldGetNext, isCycleAllowed)
topics/go/videos/miki/building/embed/static/bootstrap.js:326
↓ 2 callers
Function
getSelector
topics/go/videos/miki/building/embed/static/bootstrap.js:64
↓ 2 callers
Function
getTime
(name string, r *http.Request)
topics/go/videos/miki/building/embed/httpd.go:23
↓ 2 callers
Function
getTypeEvent
(event)
topics/go/videos/miki/building/embed/static/bootstrap.js:517
↓ 2 callers
Function
getUidEvent
* ------------------------------------------------------------------------ * Private methods * -------------------------------------------------
topics/go/videos/miki/building/embed/static/bootstrap.js:373
↓ 2 callers
Function
getUser
getUser returns a pointer of type user.
topics/go/language/functions/example3/example3.go:46
↓ 2 callers
Function
getjQuery
()
topics/go/videos/miki/building/embed/static/bootstrap.js:230
↓ 2 callers
Function
goroutine
goroutine simulates sharing a value.
topics/go/concurrency/channels/exercises/exercise1/exercise1.go:44
↓ 2 callers
Function
grabString
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 callers
Function
index
============================================================================= The index function declares that the value of type T must be compliant w
topics/go/generics/05-type-constraint/generic.go:27
↓ 2 callers
Function
insertionSort
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 callers
Function
isAlive
(pid int)
topics/go/videos/miki/shorts/is_alive/main.go:11
↓ 2 callers
Function
linearSearchIterative
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 callers
Function
linearSearchRecursive
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 callers
Function
match
(list []T, find T)
topics/go/generics/05-type-constraint/generic.go:75
↓ 2 callers
Function
moveLargest
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 callers
Function
newGraph
()
topics/go/profiling/exercises/graphblog/node.go:26
↓ 2 callers
Function
newUser
newUser creates and returns pointers of user type values.
topics/go/language/functions/exercises/exercise1/exercise1.go:21
↓ 2 callers
Method
next
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1193
↓ 2 callers
Function
normalizeData
* -------------------------------------------------------------------------- * Bootstrap (v5.1.3): dom/manipulator.js * Licensed under MIT (http
topics/go/videos/miki/building/embed/static/bootstrap.js:943
↓ 2 callers
Function
normalizeParams
(originalTypeEvent, handler, delegationFn)
topics/go/videos/miki/building/embed/static/bootstrap.js:435
↓ 2 callers
Method
notify
notify implements a method notifies admins of different events.
topics/go/language/embedding/example4/example4.go:38
↓ 2 callers
Method
notify
notify implements a method with a value receiver.
topics/go/language/methods/example1/example1.go:19
↓ 2 callers
Function
offset
(element)
topics/go/videos/miki/building/embed/static/bootstrap.js:994
↓ 2 callers
Function
oneChanceIn
oneChanceIn returns true one in n times.
topics/go/algorithms/simulations/sick/sick.go:12
↓ 2 callers
Function
player
player simulates a person playing the game of tennis.
topics/go/concurrency/channels/example2/example2.go:47
↓ 2 callers
Function
print
============================================================================= This function provides a generics solution which allows a slice of any t
topics/go/generics/01-function/generic.go:81
↓ 2 callers
Function
printAssert
============================================================================= This function provides an empty interface solution which uses type asser
topics/go/generics/01-function/generic.go:35
↓ 2 callers
Function
printHashes
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 callers
Function
printReflect
============================================================================= This function provides a reflection solution which allows a slice of any
topics/go/generics/01-function/generic.go:56
↓ 2 callers
Function
process
(fc FetchCounter)
topics/go/language/embedding/exercises/exercise1/exercise1.go:82
↓ 2 callers
Function
process
(w io.Writer, repo string, c contributorLister)
topics/go/exercises/contributors/part3/main.go:37
↓ 2 callers
Function
quickSort
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 callers
Function
read
(doc string)
topics/go/testing/benchmarks/io-bound/io.go:33
↓ 2 callers
Method
readCloseError
()
topics/go/generics/13-io/generic.go:577
↓ 2 callers
Method
refresh
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4431
↓ 2 callers
Method
reset
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2468
↓ 2 callers
Function
retrieve
retrieve can read any device and process the data.
topics/go/language/interfaces/example1/example1.go:50
↓ 2 callers
Function
sanitizeHtml
(unsafeHtml, allowList, sanitizeFn)
topics/go/videos/miki/building/embed/static/bootstrap.js:3505
↓ 2 callers
Function
selectionSortIterative
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 callers
Function
sendResponse
sendResponse marshals the provided value into json and returns that back to the caller.
topics/go/packages/context/exercises/exercise1/exercise1.go:110
↓ 2 callers
Method
setAge
setAge sets the age and displays the value.
topics/go/language/methods/example3/example3.go:21
↓ 2 callers
Function
stream
stream performs the moving of the data stream from one goroutine to the other.
topics/go/profiling/blocking/blocking_xtest.go:100
↓ 2 callers
Function
stringify
============================================================================= This function provides a generics solution which allows a slice of some
topics/go/generics/04-behavior-constraint/generic.go:111
↓ 2 callers
Function
stringifyAssert
============================================================================= This function provides an empty interface solution which uses type asser
topics/go/generics/04-behavior-constraint/generic.go:61
↓ 2 callers
Function
stringifyReflect
============================================================================= This function provides a reflection solution which allows a slice of any
topics/go/generics/04-behavior-constraint/generic.go:85
↓ 2 callers
Method
to
(index)
topics/go/videos/miki/building/embed/static/bootstrap.js:1240
↓ 2 callers
Function
triggerTransitionEnd
topics/go/videos/miki/building/embed/static/bootstrap.js:126
↓ 2 callers
Method
update
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3859
↓ 2 callers
Function
validateURL
(url string)
topics/go/videos/miki/shorts/rename_import/main.go:8
↓ 2 callers
Function
wrapFn
topics/go/videos/miki/building/embed/static/bootstrap.js:461
↓ 2 callers
Method
writeCloseError
()
topics/go/generics/13-io/generic.go:616
↓ 1 callers
Method
Acquire
Acquire retrieves a resource from the pool.
topics/go/concurrency/patterns/pool/pool.go:45
↓ 1 callers
Method
AddSort
AddSort adds a node based on lexical ordering.
topics/go/algorithms/data/list/list.go:169
↓ 1 callers
Method
ByTime
(start, end time.Time)
topics/go/videos/miki/building/embed/db.go:39
↓ 1 callers
Function
Cause
Cause iterates through all the wrapped errors until the root error value is reached.
topics/go/design/error_handling/example7/example7.go:24
↓ 1 callers
Method
CloseRead
(err error)
topics/go/generics/13-io/generic.go:585
↓ 1 callers
Method
CloseWithError
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 callers
Method
CloseWithError
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 callers
Method
CloseWrite
(err error)
topics/go/generics/13-io/generic.go:624
↓ 1 callers
Function
ColumnTraverse
ColumnTraverse traverses the matrix linearly down each column.
topics/go/testing/benchmarks/caching/caching.go:74
↓ 1 callers
Function
ConcurrentBounded
ConcurrentBounded uses a concurrent algorithm based on a bounded fan out and no channels.
topics/go/algorithms/fun/freq/freq.go:48
↓ 1 callers
Function
ConcurrentBoundedChannel
ConcurrentBoundedChannel uses a concurrent algorithm based on a bounded fan out using a channel.
topics/go/algorithms/fun/freq/freq.go:92
↓ 1 callers
Function
ConcurrentUnlimited
ConcurrentUnlimited uses a concurrent algorithm based on an unlimited fan out pattern.
topics/go/algorithms/fun/freq/freq.go:23
↓ 1 callers
Function
ConnectDB
()
topics/go/videos/miki/shorts/cleanup/cleanup_test.go:32
↓ 1 callers
Function
Copy
Copy knows how to pull and store data from any System.
topics/go/design/composition/decoupling/example3/example3.go:113
↓ 1 callers
Function
Copy
Copy knows how to pull and store data from any System.
topics/go/design/composition/decoupling/example6/example6.go:99
↓ 1 callers
Function
Copy
Copy knows how to pull and store data from the System.
topics/go/design/composition/decoupling/example2/example2.go:107
↓ 1 callers
Function
Copy
Copy knows how to pull and store data from any System.
topics/go/design/composition/decoupling/example4/example4.go:113
↓ 1 callers
Function
Copy
Copy knows how to pull and store data from the System.
topics/go/design/composition/decoupling/example1/example1.go:95
↓ 1 callers
Function
Copy
Copy knows how to pull and store data from any System.
topics/go/design/composition/decoupling/example5/example5.go:107
↓ 1 callers
Function
Copy
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
← previous
next →
201–300 of 1,474, ranked by callers