MCPcopy Create free account

hub / github.com/ardanlabs/gotraining / functions

Functions1,474 in github.com/ardanlabs/gotraining

FunctionTestInterpolationSearch
TestInterpolationSearch a function to test interpolationSearchIterative and interpolationSearchRecursive algorithms.
topics/go/algorithms/searches/interpolationsearch/interpolationsearch_test.go:24
FunctionTestIsEven
(t *testing.T)
topics/go/algorithms/bits/iseven/iseven_test.go:12
FunctionTestIsPalindrome
(t *testing.T)
topics/go/algorithms/strings/palindrome/palindrome_test.go:22
FunctionTestIsPalindrome
(t *testing.T)
topics/go/algorithms/numbers/palindrome/palindrome_test.go:12
FunctionTestIsPermutation
(t *testing.T)
topics/go/algorithms/strings/permutation/permutation_test.go:22
FunctionTestJumpSearch
TestJumpSearch a function to test jumpSearch algorithm.
topics/go/algorithms/searches/jumpsearch/jumpsearch_test.go:22
FunctionTestLatencies
TestLatencies provides a test to profile and trace channel latencies with a little data science sprinkled in.
topics/go/profiling/blocking/blocking_xtest.go:54
FunctionTestLatency
TestLatency runs a single stream so we can look at blocking profiles for different buffer sizes.
topics/go/profiling/blocking/blocking_xtest.go:45
FunctionTestLinearSearch
(t *testing.T)
topics/go/algorithms/searches/linearsearch/linearsearch_test.go:26
FunctionTestLogin
(t *testing.T)
topics/go/videos/miki/interfaces/nil_error/auth/auth_test.go:5
FunctionTestMain
(m *testing.M)
topics/go/videos/miki/shorts/test_main/main_test.go:12
FunctionTestMax
(t *testing.T)
topics/go/algorithms/slices/min/min_test.go:22
FunctionTestMax
(t *testing.T)
topics/go/algorithms/slices/max/max_test.go:22
FunctionTestMigration
(t *testing.T)
topics/go/videos/miki/shorts/skip/skip_test.go:12
FunctionTestMutexProfile
TestMutexProfile creates goroutines that will content.
topics/go/profiling/mutex/mutex_test.go:28
FunctionTestNew
TestNew validates the New functionality.
topics/go/algorithms/data/queue/queue_test.go:48
FunctionTestNewClient
TestNewClient builds clients with different token values and asserts on what kind of values should error.
topics/go/exercises/contributors/part3/github/client_test.go:16
FunctionTestNothing
(t *testing.T)
topics/go/videos/miki/shorts/test_main/main_test.go:22
FunctionTestParallelize
TestParallelize validates the http Get function can download content and handles different status conditions properly but runs the tests in parallel.
topics/go/testing/tests/example5/example5_test.go:62
FunctionTestPeek
TestPeek validates the Peek functionality.
topics/go/algorithms/data/stack/stack_test.go:146
FunctionTestPop
TestPop validates the Pop functionality.
topics/go/algorithms/data/stack/stack_test.go:96
FunctionTestProcess
(t *testing.T)
topics/go/exercises/contributors/part3/main_test.go:33
FunctionTestProcess
TestProcess tests the Process endpoint with proper data.
topics/go/testing/fuzzing/example1/example1_test.go:24
FunctionTestPush
TestPush validates the Push functionality.
topics/go/algorithms/data/stack/stack_test.go:55
FunctionTestQuickSort
TestQuickSort to test our quick sort algorithm with different data.
topics/go/algorithms/sorting/quick/quick_test.go:24
FunctionTestRemove
TestRemove validates the Remove functionality.
topics/go/algorithms/data/list/list_test.go:209
FunctionTestReverse
(t *testing.T)
topics/go/testing/strings/reverse_test.go:12
FunctionTestReverse
(t *testing.T)
topics/go/testing/strings/example3/reverse_test.go:25
FunctionTestReverse
(t *testing.T)
topics/go/testing/strings/example2/reverse_test.go:19
FunctionTestReverse
(t *testing.T)
topics/go/testing/strings/example4/reverse_test.go:24
FunctionTestReverse
(t *testing.T)
topics/go/testing/strings/example1/reverse_test.go:14
FunctionTestReverse
(t *testing.T)
topics/go/algorithms/numbers/reverse/reverse_test.go:22
FunctionTestReverseString
(t *testing.T)
topics/go/algorithms/strings/reverse/reverse_test.go:22
FunctionTestSelectionSort
TestSelectionSort to test our selection sort algorithm with different data.
topics/go/algorithms/sorting/selection/selection_test.go:24
FunctionTestSendJSON
TestSendJSON testing the sendjson internal endpoint.
topics/go/testing/tests/example4/handlers/handlers_test.go:26
FunctionTestUnpackUsers
TestUnpackUsers tests the unpacking routine.
topics/go/testing/fuzzing/exercises/exercise1/exercise1_test.go:14
MethodTitleHTML
TitleHTML fixes encoding issues.
topics/go/profiling/project/search/search.go:25
MethodTypeAsContext
TypeAsContext shows how to check multiple types of possible custom error types that can be returned from the net package.
topics/go/design/error_handling/example4/example4.go:23
MethodUnit
()
topics/go/videos/miki/interfaces/escape/weather/weather.go:9
MethodUnlock
Unlock allows a bike to be moved.
topics/go/design/composition/assertions/example1/example1.go:41
MethodUnmarshalBinary
The only use pointer semantics for the `Time` api are these unmarshal related functions.
topics/go/language/methods/example5/example5.go:101
MethodUnmarshalJSON
UnmarshalJSON implements the Unmarshaler interface.
topics/go/packages/encoding/example4/example4.go:28
MethodUnreadItem
()
topics/go/generics/13-io/generic.go:264
MethodVERSION
()
topics/go/videos/miki/building/embed/static/bootstrap.js:733
MethodWait
Wait prevents the server from accepting new connections.
topics/go/design/composition/pollution/example1/example1.go:45
MethodWork
Work implements the Worker interface.
topics/go/concurrency/patterns/task/main/main.go:31
MethodWrite
(p []byte)
topics/go/videos/miki/interfaces/design/rot.go:28
MethodWrite
(data []byte)
topics/go/videos/miki/interfaces/variable/wc/wc.go:36
MethodWrite
Write is used to write the data to the log.
topics/go/concurrency/patterns/logger/logger.go:66
MethodWrite
Write implements the io.Writer interface.
topics/go/concurrency/patterns/logger/main/main.go:22
MethodWrite
Write implements the io.Writer interface.
topics/go/concurrency/patterns/advanced/main.go:23
MethodWrite
(b []T)
topics/go/generics/13-io/generic.go:594
MethodWrite
Write implements the standard Write interface: it writes data to the pipe, blocking until one or more readers have consumed all the data or the read e
topics/go/generics/13-io/generic.go:672
MethodWrite
(p []T)
topics/go/generics/13-io/generic.go:769
MethodWriteAt
(p []T, off int64)
topics/go/generics/13-io/generic.go:239
MethodWriteItem
(c T)
topics/go/generics/13-io/generic.go:269
Method_getBasicClassPrefix
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4329
Methodadministrate
(system string)
topics/go/design/composition/exercises/exercise1/exercise1.go:15
Methodadministrate
Declare a method named administrate for the sysadmin type, implementing the administrator interface. administrate should print out the name of the sys
topics/go/design/composition/exercises/exercise1/exercise1.go:71
Methodaverage
Add imports. Declare a struct that represents a ball player. Include fields called name, atBats and hits. Declare a method that calculates the batting
topics/go/language/methods/exercises/template1/template1.go:16
FunctionbenchSprint
benchSprint tests the performance of using Sprint.
topics/go/testing/benchmarks/sub/sub_test.go:26
FunctionbenchSprintf
benchSprintf tests the performance of using Sprintf.
topics/go/testing/benchmarks/sub/sub_test.go:37
FunctionboundedWorkPooling
boundedWorkPooling: In this pattern, a pool of child goroutines is created to service a fixed amount of work. The parent goroutine iterates over all w
topics/go/concurrency/channels/example1/example1.go:175
FunctionbyHandler
(w http.ResponseWriter, r *http.Request)
topics/go/videos/miki/building/build-tags/main.go:9
Functioncancellation
cancellation: In this pattern, the parent goroutine creates a child goroutine to perform some work. The parent goroutine is only willing to wait 150 m
topics/go/concurrency/channels/example1/example1.go:238
FunctionchannelCancellation
channelCancellation shows how you can take an existing channel being used for cancellation and convert that into using a context where a context is ne
topics/go/concurrency/channels/example1/example1.go:297
FunctioncheckAmount
Declare a function named checkAmount that accepts a value of type float64 and returns an error interface value.
topics/go/design/error_handling/exercises/template1/template1.go:25
FunctioncheckFlag
Add imports. Declare a struct type named appError with three fields, err of type error, message of type string and code of type int. Declare a method
topics/go/design/error_handling/exercises/template2/template2.go:30
Functionchildren
(element, selector)
topics/go/videos/miki/building/embed/static/bootstrap.js:1027
Methodclose
()
topics/go/videos/miki/building/embed/static/bootstrap.js:809
Functioncompare
Compare needs to return 0 if the two values are the same, a positive number of a > b, and a negative number of a < b.
topics/go/packages/slices/example12/example12.go:56
Functioncompare
compare needs to return true if the two values are the same.
topics/go/packages/slices/example4/example4.go:37
Functioncompare
(a, b int)
topics/go/packages/slices/example8/example8.go:39
Functioncompare
Compare needs to return 0 if the two values are the same, a positive number of a > b, and a negative number of a < b.
topics/go/packages/slices/example1/example1.go:42
Functioncompare
compare evaluates values in increasing index order, and the comparisons stop after the first time the function returns non-zero. Return 0 is the two v
topics/go/packages/slices/example5/example5.go:60
Methodcomplete
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1778
Methodcomplete
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3796
Methodcomplete
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4668
Methodcomplete
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4874
MethodcompleteCallBack
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1500
MethodcompleteCallBack
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3270
MethodcompleteCallback
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3304
Methodconstructor
(element)
topics/go/videos/miki/building/embed/static/bootstrap.js:700
Methodconstructor
(element, config)
topics/go/videos/miki/building/embed/static/bootstrap.js:1165
Methodconstructor
(element, config)
topics/go/videos/miki/building/embed/static/bootstrap.js:1676
Methodconstructor
(element, config)
topics/go/videos/miki/building/embed/static/bootstrap.js:2018
Methodconstructor
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2421
Methodconstructor
(config)
topics/go/videos/miki/building/embed/static/bootstrap.js:2543
Methodconstructor
(config)
topics/go/videos/miki/building/embed/static/bootstrap.js:2664
Methodconstructor
(element, config)
topics/go/videos/miki/building/embed/static/bootstrap.js:2795
Methodconstructor
(element, config)
topics/go/videos/miki/building/embed/static/bootstrap.js:3216
Methodconstructor
(element, config)
topics/go/videos/miki/building/embed/static/bootstrap.js:3632
Methodconstructor
(element, config)
topics/go/videos/miki/building/embed/static/bootstrap.js:4407
Methodconstructor
(element, config)
topics/go/videos/miki/building/embed/static/bootstrap.js:4837
FunctioncreateConnection
createConnection is a factory method that will be called by the pool when a new connection is needed.
topics/go/concurrency/patterns/pool/main/main.go:42
MethoddailyReportHandler
(w http.ResponseWriter, r *http.Request)
topics/go/videos/miki/shorts/http_flusher/main.go:16
MethoddataApiClickHandler
(event)
topics/go/videos/miki/building/embed/static/bootstrap.js:1580
MethoddataApiKeydownHandler
(event)
topics/go/videos/miki/building/embed/static/bootstrap.js:2338
Methoddevelop
(system string)
topics/go/design/composition/exercises/exercise1/exercise1.go:20
Methoddevelop
Declare a method named develop for the programmer type, implementing the developer interface. develop should print out the name of the programmer, as
topics/go/design/composition/exercises/exercise1/exercise1.go:83
← previousnext →901–1,000 of 1,474, ranked by callers