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
Method
Close
Close will shutdown the pool and close all existing resources.
topics/go/concurrency/patterns/pool/pool.go:89
Method
Close
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
Method
Close
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
Method
Close
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
Method
Close
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
Method
ContentHTML
ContentHTML fixes encoding issues.
topics/go/profiling/project/search/search.go:30
Method
ContributorList
(string)
topics/go/exercises/contributors/part2/main.go:33
Method
ContributorList
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
Method
ContributorList
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
Function
Copy
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
Function
CopyBuffer
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
Function
CopyN
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
Method
Count
Count tells how many documents are in the feed.
topics/go/language/embedding/exercises/exercise1/exercise1.go:26
Method
Count
()
topics/go/language/embedding/exercises/exercise1/exercise1.go:79
Method
Count
Count tells how many documents are in the feed.
topics/go/language/embedding/exercises/template1/template1.go:29
Function
Current
()
topics/go/videos/miki/interfaces/escape/weather/weather.go:17
Method
DATA_KEY
()
topics/go/videos/miki/building/embed/static/bootstrap.js:741
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1184
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1707
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2027
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2808
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3231
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3652
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4297
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4422
Method
Default
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4852
Method
DefaultType
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2031
Method
DefaultType
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3664
Method
DefaultType
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4309
Method
DefaultType
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4848
Method
Dequeue
Dequeue removes an administrator from the adminlist.
topics/go/design/composition/exercises/template1/template1.go:35
Method
Dequeue
Dequeue removes a developer from the devlist.
topics/go/design/composition/exercises/template1/template1.go:54
Method
EVENT_KEY
()
topics/go/videos/miki/building/embed/static/bootstrap.js:745
Method
Enqueue
Enqueue adds an administrator to the adminlist.
topics/go/design/composition/exercises/template1/template1.go:30
Method
Enqueue
Enqueue adds a developer to the devlist.
topics/go/design/composition/exercises/template1/template1.go:49
Method
Error
Error implements the error interface.
topics/go/design/error_handling/example3/example3.go:22
Method
Error
Error implements the error interface.
topics/go/design/error_handling/example3/example3.go:33
Method
Error
Error implements the error interface.
topics/go/design/error_handling/example6/example6.go:19
Method
Error
http://golang.org/src/pkg/errors/errors.go
topics/go/design/error_handling/example1/example1.go:20
Method
Error
Error implements the error interface for appError.
topics/go/design/error_handling/exercises/exercise2/exercise2.go:27
Method
Error
Error implements the error interface.
topics/go/design/error_handling/example7/example7.go:18
Method
Error
Error implements the error interface.
topics/go/design/error_handling/example5/example5.go:13
Method
Error
Error implements the error interface.
topics/go/design/error_handling/example5/reason/reason.go:16
Method
Error
()
topics/go/videos/miki/interfaces/nil_error/auth/auth.go:8
Method
Event
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4305
Function
ExampleClient_Start
()
topics/go/videos/miki/shorts/vms/after/example_test.go:9
Function
ExampleClient_Start
()
topics/go/videos/miki/shorts/vms/before/example_test.go:9
Function
ExampleKey
()
topics/go/videos/miki/interfaces/stringer/key/example_test.go:5
Function
ExampleLineCount
()
topics/go/videos/miki/interfaces/variable/wc/example_test.go:5
Function
ExampleLogger_Info
()
topics/go/videos/miki/interfaces/type_assertion/logger/example_test.go:5
Function
ExampleMaxFloat64s
()
topics/go/videos/miki/interfaces/generics/stats/example_test.go:15
Function
ExampleMaxInts
()
topics/go/videos/miki/interfaces/generics/stats/example_test.go:5
Function
ExampleRideFare
()
topics/go/videos/miki/shorts/ride/example_test.go:9
Function
ExampleSendJSON
ExampleSendJSON provides a basic example example.
topics/go/testing/tests/example4/handlers/handlers_example_test.go:18
Method
Fetch
Fetch simulates looking up the document specified by key. It is slow.
topics/go/language/embedding/exercises/exercise1/exercise1.go:31
Method
Fetch
Fetch calls the embedded type's Fetch method if the key is not cached.
topics/go/language/embedding/exercises/exercise1/exercise1.go:60
Method
Fetch
(key string)
topics/go/language/embedding/exercises/exercise1/exercise1.go:78
Method
Fetch
Fetch simulates looking up the document specified by key. It is slow.
topics/go/language/embedding/exercises/template1/template1.go:34
Method
Fetch
Fetch calls the embedded type's Fetch method if the key is not cached.
topics/go/language/embedding/exercises/template1/template1.go:87
Function
Fuzz
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
Function
Fuzz
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
Method
GotConn
GotConn prints whether the connection has been used previously for the current request.
topics/go/profiling/http_trace/example2/example2.go:29
Function
HeapSort
HeapSort takes a random list of numbers and returns the sorted list.
topics/go/algorithms/sorting/heap/heap.go:12
Function
InsertCustomer
(db *sql.DB, c Customer)
topics/go/generics/07-field-access/generic.go:43
Function
InsertUser
(db *sql.DB, u User)
topics/go/generics/07-field-access/generic.go:21
Function
InsertUser2
(db *sql.DB, u User)
topics/go/generics/07-field-access/generic.go:93
Method
Len
For sorting an RuneSlice.
topics/go/algorithms/strings/permutation/permutation.go:11
Method
Less
(i, j int)
topics/go/algorithms/strings/permutation/permutation.go:12
Method
Lock
Lock prevents a bike from moving.
topics/go/design/composition/assertions/example1/example1.go:36
Method
MarshalJSON
MarshalJSON implements the Marshaler interface.
topics/go/packages/encoding/example4/example4.go:19
Method
Mask
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
Method
Method
()
topics/go/language/pointers/flaws/example4/example4_test.go:13
Method
Move
()
topics/go/design/composition/assertions/example1/example1.go:12
Method
Move
Move can change the position of a bike.
topics/go/design/composition/assertions/example1/example1.go:31
Method
Mul
(a, b *Float64)
topics/go/generics/12-pointer-methods/generic.go:24
Function
MultiReader
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
Function
MultiWriter
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
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:737
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:804
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:893
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1188
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1711
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2035
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2812
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3227
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3656
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4301
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4426
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4634
Method
NAME
()
topics/go/videos/miki/building/embed/static/bootstrap.js:4856
Function
NewCachingFeed
NewCachingFeed initializes a CachingFeed for use.
topics/go/language/embedding/exercises/template1/template1.go:78
Function
NewSectionReader
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
Function
Now
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
Function
Open
os
topics/go/videos/miki/interfaces/design/rot.go:16
Function
Pipe
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
Function
PrettyPrint
PrettyPrint takes a Tree value and displays a pretty print version of the tree.
topics/go/algorithms/data/tree/binary/print.go:10
Function
Process
Process handles the processing of data.
topics/go/testing/fuzzing/example1/example1.go:35
Method
Publish
Publish implements the publisher interface for the mock.
topics/go/design/composition/mocking/example1/example1.go:23
Method
Publish
Publish sends the data for the specified key.
topics/go/design/composition/mocking/example1/pubsub/pubsub.go:27
Method
Pull
(d *Data)
topics/go/design/composition/decoupling/example3/example3.go:30
← previous
next →
701–800 of 1,474, ranked by callers