MCPcopy Create free account

hub / github.com/ardanlabs/gotraining / functions

Functions1,474 in github.com/ardanlabs/gotraining

MethodClose
Close will shutdown the pool and close all existing resources.
topics/go/concurrency/patterns/pool/pool.go:89
MethodClose
Close implements the io.Closer interface so dbConnection can be managed by the pool. Close performs any resource release management.
topics/go/concurrency/patterns/pool/main/main.go:32
MethodClose
Close closes the reader; subsequent writes to the write half of the pipe will return the error ErrClosedPipe.
topics/go/generics/13-io/generic.go:649
MethodClose
Close closes the writer; subsequent reads from the read half of the pipe will return no Ts and EOF.
topics/go/generics/13-io/generic.go:678
MethodClose
Close prevents any new customers from entering the shop and waits for the barber to finish all existing customers.
topics/go/algorithms/fun/barber/shop/shop.go:73
MethodContentHTML
ContentHTML fixes encoding issues.
topics/go/profiling/project/search/search.go:30
MethodContributorList
(string)
topics/go/exercises/contributors/part2/main.go:33
MethodContributorList
ContributorList gives a list of the top 30 contributors. It returns an error for network problems reaching the API or for application problems such as
topics/go/exercises/contributors/part2/github/client.go:35
MethodContributorList
ContributorList satisfies the main package's "contributorLister" interface. It returns predefined result sets for different repo values.
topics/go/exercises/contributors/part3/main_test.go:18
FunctionCopy
Interface say what we need, not what we provide. Rule of thumb: Accept interfaces, return types. io
topics/go/videos/miki/interfaces/design/rot.go:8
FunctionCopyBuffer
CopyBuffer is identical to Copy except that it stages through the provided buffer (if one is required) rather than allocating a temporary one. If buf
topics/go/generics/13-io/generic.go:350
FunctionCopyN
CopyN copies n bytes (or until an error) from src to dst. It returns the number of bytes copied and the earliest error encountered while copying. On r
topics/go/generics/13-io/generic.go:315
MethodCount
Count tells how many documents are in the feed.
topics/go/language/embedding/exercises/exercise1/exercise1.go:26
MethodCount
()
topics/go/language/embedding/exercises/exercise1/exercise1.go:79
MethodCount
Count tells how many documents are in the feed.
topics/go/language/embedding/exercises/template1/template1.go:29
FunctionCurrent
()
topics/go/videos/miki/interfaces/escape/weather/weather.go:17
MethodDATA_KEY
()
topics/go/videos/miki/building/embed/static/bootstrap.js:741
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1184
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1707
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2027
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2808
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3231
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3652
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4297
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4422
MethodDefault
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4852
MethodDefaultType
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2031
MethodDefaultType
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3664
MethodDefaultType
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4309
MethodDefaultType
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4848
MethodDequeue
Dequeue removes an administrator from the adminlist.
topics/go/design/composition/exercises/template1/template1.go:35
MethodDequeue
Dequeue removes a developer from the devlist.
topics/go/design/composition/exercises/template1/template1.go:54
MethodEVENT_KEY
()
topics/go/videos/miki/building/embed/static/bootstrap.js:745
MethodEnqueue
Enqueue adds an administrator to the adminlist.
topics/go/design/composition/exercises/template1/template1.go:30
MethodEnqueue
Enqueue adds a developer to the devlist.
topics/go/design/composition/exercises/template1/template1.go:49
MethodError
Error implements the error interface.
topics/go/design/error_handling/example3/example3.go:22
MethodError
Error implements the error interface.
topics/go/design/error_handling/example3/example3.go:33
MethodError
Error implements the error interface.
topics/go/design/error_handling/example6/example6.go:19
MethodError
http://golang.org/src/pkg/errors/errors.go
topics/go/design/error_handling/example1/example1.go:20
MethodError
Error implements the error interface for appError.
topics/go/design/error_handling/exercises/exercise2/exercise2.go:27
MethodError
Error implements the error interface.
topics/go/design/error_handling/example7/example7.go:18
MethodError
Error implements the error interface.
topics/go/design/error_handling/example5/example5.go:13
MethodError
Error implements the error interface.
topics/go/design/error_handling/example5/reason/reason.go:16
MethodError
()
topics/go/videos/miki/interfaces/nil_error/auth/auth.go:8
MethodEvent
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4305
FunctionExampleClient_Start
()
topics/go/videos/miki/shorts/vms/after/example_test.go:9
FunctionExampleClient_Start
()
topics/go/videos/miki/shorts/vms/before/example_test.go:9
FunctionExampleKey
()
topics/go/videos/miki/interfaces/stringer/key/example_test.go:5
FunctionExampleLineCount
()
topics/go/videos/miki/interfaces/variable/wc/example_test.go:5
FunctionExampleLogger_Info
()
topics/go/videos/miki/interfaces/type_assertion/logger/example_test.go:5
FunctionExampleMaxFloat64s
()
topics/go/videos/miki/interfaces/generics/stats/example_test.go:15
FunctionExampleMaxInts
()
topics/go/videos/miki/interfaces/generics/stats/example_test.go:5
FunctionExampleRideFare
()
topics/go/videos/miki/shorts/ride/example_test.go:9
FunctionExampleSendJSON
ExampleSendJSON provides a basic example example.
topics/go/testing/tests/example4/handlers/handlers_example_test.go:18
MethodFetch
Fetch simulates looking up the document specified by key. It is slow.
topics/go/language/embedding/exercises/exercise1/exercise1.go:31
MethodFetch
Fetch calls the embedded type's Fetch method if the key is not cached.
topics/go/language/embedding/exercises/exercise1/exercise1.go:60
MethodFetch
(key string)
topics/go/language/embedding/exercises/exercise1/exercise1.go:78
MethodFetch
Fetch simulates looking up the document specified by key. It is slow.
topics/go/language/embedding/exercises/template1/template1.go:34
MethodFetch
Fetch calls the embedded type's Fetch method if the key is not cached.
topics/go/language/embedding/exercises/template1/template1.go:87
FunctionFuzz
Fuzz is executed by the go-fuzz tool. Input data modifications are provided and used to validate API call.
topics/go/testing/fuzzing/example1/fuzzer.go:17
FunctionFuzz
Fuzz is executed by the go-fuzz tool. Input data modifications are provided and used to validate the UnpackUsers function.
topics/go/testing/fuzzing/exercises/exercise1/fuzzer.go:7
MethodGotConn
GotConn prints whether the connection has been used previously for the current request.
topics/go/profiling/http_trace/example2/example2.go:29
FunctionHeapSort
HeapSort takes a random list of numbers and returns the sorted list.
topics/go/algorithms/sorting/heap/heap.go:12
FunctionInsertCustomer
(db *sql.DB, c Customer)
topics/go/generics/07-field-access/generic.go:43
FunctionInsertUser
(db *sql.DB, u User)
topics/go/generics/07-field-access/generic.go:21
FunctionInsertUser2
(db *sql.DB, u User)
topics/go/generics/07-field-access/generic.go:93
MethodLen
For sorting an RuneSlice.
topics/go/algorithms/strings/permutation/permutation.go:11
MethodLess
(i, j int)
topics/go/algorithms/strings/permutation/permutation.go:12
MethodLock
Lock prevents a bike from moving.
topics/go/design/composition/assertions/example1/example1.go:36
MethodMarshalJSON
MarshalJSON implements the Marshaler interface.
topics/go/packages/encoding/example4/example4.go:19
MethodMask
Mask is using a value receiver and returning a value of type IP. This method is using value semantics for type IP.
topics/go/language/methods/example5/example5.go:26
MethodMethod
()
topics/go/language/pointers/flaws/example4/example4_test.go:13
MethodMove
()
topics/go/design/composition/assertions/example1/example1.go:12
MethodMove
Move can change the position of a bike.
topics/go/design/composition/assertions/example1/example1.go:31
MethodMul
(a, b *Float64)
topics/go/generics/12-pointer-methods/generic.go:24
FunctionMultiReader
MultiReader returns a Reader that's the logical concatenation of the provided input readers. They're read sequentially. Once all inputs have returned
topics/go/generics/13-io/generic.go:759
FunctionMultiWriter
MultiWriter creates a writer that duplicates its writes to all the provided writers, similar to the Unix tee(1) command. Each write is written to eac
topics/go/generics/13-io/generic.go:789
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:737
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:804
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:893
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1188
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1711
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2035
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2812
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3227
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3656
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4301
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4426
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4634
MethodNAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4856
FunctionNewCachingFeed
NewCachingFeed initializes a CachingFeed for use.
topics/go/language/embedding/exercises/template1/template1.go:78
FunctionNewSectionReader
NewSectionReader returns a SectionReader that reads from r starting at offset off and stops with EOF after n bytes.
topics/go/generics/13-io/generic.go:434
FunctionNow
Factory functions dictate the semantics that will be used. The Now function returns a value of type Time. This means we should be using value semantic
topics/go/language/methods/example5/example5.go:69
FunctionOpen
os
topics/go/videos/miki/interfaces/design/rot.go:16
FunctionPipe
Pipe creates a synchronous in-memory pipe. It can be used to connect code expecting an io.Reader with code expecting an io.Writer. Reads and Writes o
topics/go/generics/13-io/generic.go:707
FunctionPrettyPrint
PrettyPrint takes a Tree value and displays a pretty print version of the tree.
topics/go/algorithms/data/tree/binary/print.go:10
FunctionProcess
Process handles the processing of data.
topics/go/testing/fuzzing/example1/example1.go:35
MethodPublish
Publish implements the publisher interface for the mock.
topics/go/design/composition/mocking/example1/example1.go:23
MethodPublish
Publish sends the data for the specified key.
topics/go/design/composition/mocking/example1/pubsub/pubsub.go:27
MethodPull
(d *Data)
topics/go/design/composition/decoupling/example3/example3.go:30
← previousnext →701–800 of 1,474, ranked by callers