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
↓ 1 callers
Method
DailyReport
(day time.Time)
topics/go/videos/miki/shorts/http_flusher/main.go:56
↓ 1 callers
Function
DecodeVarint
DecodeVarint takes a variable length VLQ based integer and decodes it into a 32 bit integer.
topics/go/algorithms/fun/vlq/vlq.go:10
↓ 1 callers
Function
DoubleUnderlying
(n Numbers)
topics/go/generics/09-slice-constraints/generic.go:68
↓ 1 callers
Function
DoubleUserDefined
(n Numbers)
topics/go/generics/09-slice-constraints/generic.go:78
↓ 1 callers
Function
EncodeVarint
EncodeVarint takes a 32 bit integer and encodes it into a variable length VLQ based integer.
topics/go/algorithms/fun/vlq/vlq.go:49
↓ 1 callers
Method
EnterCustomer
EnterCustomer is called to create a customer to be serviced. If the shop is closed the function returns an error. If the shop is open, a goroutine is
topics/go/algorithms/fun/barber/shop/shop.go:89
↓ 1 callers
Method
Event
()
topics/go/videos/miki/shorts/json_stream/db.go:29
↓ 1 callers
Method
Event
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3660
↓ 1 callers
Method
FindReverse
FindReverse traverses the list in the opposite direction looking for the specified data.
topics/go/algorithms/data/list/list.go:114
↓ 1 callers
Function
FreePort
FreePort return random free port to use.
topics/go/videos/miki/shorts/free_port/main.go:9
↓ 1 callers
Method
Health
(ctx context.Context)
topics/go/videos/miki/shorts/client/client.go:18
↓ 1 callers
Method
Health
()
topics/go/videos/miki/interfaces/mocking/client/client.go:21
↓ 1 callers
Function
HealthHandler
(w http.ResponseWriter, r *http.Request)
topics/go/videos/miki/shorts/files/files.go:8
↓ 1 callers
Method
InOrder
InOrder traversal travel from the leftmost node to the rightmost nodes regardless of depth. In-order traversal gives node values in ascending order.
topics/go/algorithms/data/tree/binary/binary.go:83
↓ 1 callers
Method
Insert
Insert adds a value into the tree and keeps the tree balanced.
topics/go/algorithms/data/tree/binary/binary.go:23
↓ 1 callers
Function
Is
Is check if two strings are permutations.
topics/go/algorithms/strings/permutation/permutation.go:16
↓ 1 callers
Function
Is
Is checks if a string is a Palindrome.
topics/go/algorithms/strings/palindrome/palindrome.go:6
↓ 1 callers
Function
Is
Is checks if a integer is a Palindrome.
topics/go/algorithms/numbers/palindrome/palindrome.go:6
↓ 1 callers
Function
IsEven
IsEven checks is an integer is even.
topics/go/algorithms/bits/iseven/iseven.go:4
↓ 1 callers
Function
LimitReader
LimitReader returns a Reader that reads from r but stops with EOF after n bytes. The underlying implementation is a *LimitedReader.
topics/go/generics/13-io/generic.go:409
↓ 1 callers
Function
LinkedListTraverse
LinkedListTraverse traverses the linked list linearly.
topics/go/testing/benchmarks/caching/caching.go:58
↓ 1 callers
Function
Login
(user, passwd string)
topics/go/videos/miki/interfaces/nil_error/auth/auth.go:14
↓ 1 callers
Function
Make
Make allows the creation of a stack with an initial capacity for efficiency. Otherwise a stack can be used in its zero value state.
topics/go/algorithms/data/stack/stack.go:22
↓ 1 callers
Function
MarkdownList
(items []string)
topics/go/videos/miki/shorts/markdown_list/main.go:8
↓ 1 callers
Function
Max
(values []T)
topics/go/videos/miki/shorts/trimpath/stats/stats.go:7
↓ 1 callers
Function
Max
Max returns the maximum integer in the slice.
topics/go/algorithms/slices/max/max.go:6
↓ 1 callers
Function
Min
(a, b T)
topics/go/generics/omissions/03-type-assertions/generic.go:19
↓ 1 callers
Function
Min
Min returns the minimum integer in the slice.
topics/go/algorithms/slices/min/min.go:6
↓ 1 callers
Method
Mul
(*T, *T)
topics/go/generics/12-pointer-methods/generic.go:50
↓ 1 callers
Function
New
New creates and returns values of the unexported type alertCounter.
topics/go/language/exporting/example3/counters/counters.go:12
↓ 1 callers
Function
New
New creates values of type toy.
topics/go/language/exporting/exercises/exercise1/toy/toy.go:17
↓ 1 callers
Function
New
New creates a pubsub value for use.
topics/go/design/composition/mocking/example1/pubsub/pubsub.go:16
↓ 1 callers
Function
New
http://golang.org/src/pkg/errors/errors.go New returns an error that formats as the given text.
topics/go/design/error_handling/example1/example1.go:26
↓ 1 callers
Function
New
(url string)
topics/go/videos/miki/interfaces/mocking/client/client.go:13
↓ 1 callers
Function
New
(w io.Writer)
topics/go/videos/miki/interfaces/type_assertion/logger/logger.go:17
↓ 1 callers
Function
New
New creates a logger value and initializes it for use. The user can pass the size of the buffer to use for continuity.
topics/go/concurrency/patterns/logger/logger.go:23
↓ 1 callers
Function
New
New creates a new work pool.
topics/go/concurrency/patterns/task/task.go:23
↓ 1 callers
Function
New
New creates a new chatroom.
topics/go/concurrency/patterns/chat/chat.go:206
↓ 1 callers
Function
New
New creates a pool that manages resources. A pool requires a function that can allocate a new resource and the size of the pool.
topics/go/concurrency/patterns/pool/pool.go:33
↓ 1 callers
Function
New
New returns a new hash table.
topics/go/algorithms/data/hash/hash.go:24
↓ 1 callers
Function
NewAPIClient
(baseURL string)
topics/go/videos/miki/shorts/client/client.go:14
↓ 1 callers
Function
NewBBC
NewBBC returns a BBC Searcher value.
topics/go/profiling/project/search/bbc.go:16
↓ 1 callers
Function
NewCNN
NewCNN returns a CNN Searcher value.
topics/go/profiling/project/search/cnn.go:16
↓ 1 callers
Function
NewCachingFeed
NewCachingFeed initializes a CachingFeed for use.
topics/go/language/embedding/exercises/exercise1/exercise1.go:52
↓ 1 callers
Function
NewClient
NewClient builds a Client value. It validates that the token field is set and is not blank. It sets internal state for the http client. Call it like:
topics/go/exercises/contributors/part2/github/client.go:20
↓ 1 callers
Function
NewClients
NewClients returns a clients management value.
topics/go/algorithms/fun/pubsub/clients.go:17
↓ 1 callers
Function
NewDB
()
topics/go/videos/miki/shorts/json_stream/db.go:11
↓ 1 callers
Function
NewDB
(dsn string)
topics/go/videos/miki/building/embed/db.go:20
↓ 1 callers
Function
NewNYT
NewNYT returns a NYT Searcher value.
topics/go/profiling/project/search/nyt.go:16
↓ 1 callers
Function
NewPublisher
NewPublisher connects to the publisher can receives messages.
topics/go/algorithms/fun/pubsub/publisher.go:15
↓ 1 callers
Function
NewReplaceReader
NewReplaceReader returns an io.Reader that reads from r, replacing any occurrence of old with new. Used by algFour.
topics/go/packages/io/example4/example4.go:284
↓ 1 callers
Function
NewServer
NewServer returns an interface value of type Server with a server implementation.
topics/go/design/composition/pollution/example2/example2.go:17
↓ 1 callers
Function
NewServer
NewServer returns an interface value of type Server with a server implementation.
topics/go/design/composition/pollution/example1/example1.go:24
↓ 1 callers
Method
Next
(v any)
topics/go/videos/miki/shorts/http_flusher/main.go:60
↓ 1 callers
Method
OnHand
OnHand returns the current number of this toy on hand.
topics/go/language/exporting/exercises/exercise1/toy/toy.go:26
↓ 1 callers
Function
Open
Open creates a new shop for business and gets the barber working.
topics/go/algorithms/fun/barber/shop/shop.go:51
↓ 1 callers
Method
Operate
Operate accepts a function that takes data and calls the specified function for every piece of data found. It traverses from the top down through the
topics/go/algorithms/data/stack/stack.go:70
↓ 1 callers
Method
Operate
Operate accepts a function that takes data and calls the specified function for every piece of data found.
topics/go/algorithms/data/queue/queue.go:108
↓ 1 callers
Method
PostOrder
PostOrder traversal get the leftmost node then its sibling then go up to its parent, recursively. Use cases: tree deletion, mapping postfix notation.
topics/go/algorithms/data/tree/binary/binary.go:101
↓ 1 callers
Method
PreOrder
PreOrder traversal get the root node then traversing its child nodes recursively. Use cases: copying tree, mapping prefix notation. #1 \ #2 #5 \
topics/go/algorithms/data/tree/binary/binary.go:65
↓ 1 callers
Function
Print
============================================================================= Print is a function that accepts a slice of some type L and a slice of s
topics/go/generics/06-multi-type-params/generic.go:15
↓ 1 callers
Function
Ptr
Ptr returns pointer of value.
topics/go/videos/miki/shorts/query/generics/query.go:27
↓ 1 callers
Method
Publish
(key string, v interface{})
topics/go/design/composition/mocking/example1/example1.go:15
↓ 1 callers
Function
ReadAtLeast
ReadAtLeast reads from r into buf until it has read at least min bytes. It returns the number of bytes copied and an error if fewer bytes were read. T
topics/go/generics/13-io/generic.go:280
↓ 1 callers
Method
Release
Release places a new resource onto the pool.
topics/go/concurrency/patterns/pool/pool.go:64
↓ 1 callers
Function
RequestID
Middleware that adds request ID to request context
topics/go/videos/miki/shorts/request_ctx/main.go:18
↓ 1 callers
Function
Reverse
Reverse gives the reversed form of s. This is the first (mostly) correct implementation. It breaks for strings with combining characters; "noël" bec
topics/go/testing/strings/example3/reverse.go:15
↓ 1 callers
Function
Reverse
Reverse gives the reversed form of s. This is the first real attempt. It fails on multibyte input.
topics/go/testing/strings/example2/reverse.go:10
↓ 1 callers
Function
Reverse
Reverse gives the reversed form of s. This is the initial implementation. It passes our test so it must be good! :)
topics/go/testing/strings/example1/reverse.go:11
↓ 1 callers
Method
RoundTrip
RoundTrip wraps http.DefaultTransport.RoundTrip to keep track of the current request.
topics/go/profiling/http_trace/example2/example2.go:22
↓ 1 callers
Function
Routes
Routes initializes the routes.
topics/go/testing/fuzzing/example1/example1.go:23
↓ 1 callers
Function
RowTraverse
RowTraverse traverses the matrix linearly down each row.
topics/go/testing/benchmarks/caching/caching.go:89
↓ 1 callers
Function
Run
Run binds the service to a port and starts listening for requests.
topics/go/profiling/project/service/service.go:30
↓ 1 callers
Function
Runner
Runner simulates a person running in the relay race.
topics/go/concurrency/channels/example3/example3.go:36
↓ 1 callers
Method
Search
(uid string, term string, found chan<- []Result)
topics/go/profiling/project/search/search.go:37
↓ 1 callers
Method
Send
Send will deliver the message to all existing clients.
topics/go/algorithms/fun/pubsub/clients.go:52
↓ 1 callers
Function
Sequential
Sequential uses a sequential algorithm.
topics/go/algorithms/fun/freq/freq.go:11
↓ 1 callers
Method
Set
(s string)
topics/go/videos/miki/shorts/date_flag/main.go:23
↓ 1 callers
Method
Shutdown
Shutdown disconnects the publisher and stop messages.
topics/go/algorithms/fun/pubsub/publisher.go:37
↓ 1 callers
Method
Sold
Sold returns the current number of this toy sold.
topics/go/language/exporting/exercises/exercise1/toy/toy.go:39
↓ 1 callers
Method
Start
Start allows the server to begin to accept requests.
topics/go/design/composition/pollution/example2/example2.go:24
↓ 1 callers
Method
Stop
Stop shuts the server down.
topics/go/design/composition/pollution/example2/example2.go:31
↓ 1 callers
Method
String
()
topics/go/generics/06-multi-type-params/generic.go:30
↓ 1 callers
Function
Submit
Submit uses goroutines and channels to perform a search against the feeds concurrently.
topics/go/profiling/project/search/search.go:42
↓ 1 callers
Method
Subscribe
(key string)
topics/go/design/composition/mocking/example1/example1.go:16
↓ 1 callers
Method
Sync
()
topics/go/videos/miki/interfaces/type_assertion/logger/logger.go:9
↓ 1 callers
Method
Unit
()
topics/go/videos/miki/interfaces/escape/weather/bench_test.go:13
↓ 1 callers
Function
Unmarshal
Unmarshal simulates an unmarshal call that always fails.
topics/go/design/error_handling/example3/example3.go:68
↓ 1 callers
Function
UnpackUsers
UnpackUsers knows how to extract user values from the binary data.
topics/go/testing/fuzzing/exercises/exercise1/exercise1.go:21
↓ 1 callers
Method
UpdateOnHand
UpdateOnHand updates the on hand count and returns the current value.
topics/go/language/exporting/exercises/exercise1/toy/toy.go:32
↓ 1 callers
Method
UpdateSold
UpdateSold updates the sold count and returns the current value.
topics/go/language/exporting/exercises/exercise1/toy/toy.go:45
↓ 1 callers
Method
Wait
Wait prevents the server from accepting new connections.
topics/go/design/composition/pollution/example2/example2.go:38
↓ 1 callers
Method
Work
()
topics/go/concurrency/patterns/task/task.go:12
↓ 1 callers
Method
_addEventListeners
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1292
↓ 1 callers
Method
_addEventListeners
()
topics/go/videos/miki/building/embed/static/bootstrap.js:3357
↓ 1 callers
Method
_addTouchEventListeners
()
topics/go/videos/miki/building/embed/static/bootstrap.js:1307
↓ 1 callers
Method
_append
()
topics/go/videos/miki/building/embed/static/bootstrap.js:2608
↓ 1 callers
Method
_createPopper
(parent)
topics/go/videos/miki/building/embed/static/bootstrap.js:2156
↓ 1 callers
Method
_destroyElement
()
topics/go/videos/miki/building/embed/static/bootstrap.js:824
↓ 1 callers
Method
_directionToOrder
(direction)
topics/go/videos/miki/building/embed/static/bootstrap.js:1521
← previous
next →
301–400 of 1,474, ranked by callers