Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RezaSi/go-interview-practice
/ functions
Functions
12,886 in github.com/RezaSi/go-interview-practice
⨍
Functions
12,886
◇
Types & classes
2,640
↓ 2 callers
Method
SearchBy
(predicate func(*Book) bool)
challenge-9/submissions/PolinaSvet/solution-template.go:198
↓ 2 callers
Method
SearchByISBN
(isbn string)
challenge-9/submissions/Kosench/solution-template.go:50
↓ 2 callers
Function
SearchPostsByContent
SearchPostsByContent searches posts by content using full-text search
packages/gorm/challenge-4-advanced-queries/solution-template.go:83
↓ 2 callers
Function
SearchUsersInCompany
SearchUsersInCompany finds users working in a specific company using join with filters
packages/gorm/challenge-5-generics/solution-template.go:118
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/llopp1994/solution-template.go:21
↓ 2 callers
Method
Send
Send sends a message to the client (non-blocking)
challenge-8/submissions/odelbos/solution-template.go:27
↓ 2 callers
Method
Send
Send sends a message to the client (non-blocking)
challenge-8/submissions/Kosench/solution-template.go:48
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/PopovMarko/solution-template.go:31
↓ 2 callers
Method
Send
(message string)
challenge-8/submissions/imankhodadi/solution-template.go:28
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/yogtanko/solution-template.go:22
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/mvsouza/solution-template.go:20
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/mick4711/solution-template.go:20
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/ne0phyte/solution-template.go:28
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/y1hao/solution-template.go:19
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/brenoamin/solution-template.go:24
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/nzamulov/solution-template.go:33
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/Cpoing/solution-template.go:21
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/Gandook/solution-template.go:21
↓ 2 callers
Method
Send
Send sends a message to the client
challenge-8/submissions/JackDalberg/solution-template.go:52
↓ 2 callers
Method
SetResponse
(url string, response []byte)
challenge-11/solution-template_test.go:29
↓ 2 callers
Method
SetResult
(content string, result ProcessedData)
challenge-11/solution-template_test.go:70
↓ 2 callers
Function
SetupServer
SetupServer configures the HTTP routes with the authentication middleware.
challenge-5/solution-template.go:34
↓ 2 callers
Method
Shutdown
Shutdown performs cleanup and ensures all resources are properly released
challenge-11/solution-template.go:56
↓ 2 callers
Function
SimulateWork
Helper function - simulate work that can be cancelled
challenge-30/solution-template.go:84
↓ 2 callers
Function
SimulateWork
Helper function - simulate work that can be cancelled Cannot change function signature, it is part of the assignment
challenge-30/submissions/imankhodadi/solution-template.go:131
↓ 2 callers
Method
SortByArea
SortByArea sorts shapes by area in ascending or descending order
challenge-10/solution-template.go:133
↓ 2 callers
Function
StartProductService
StartProductService starts the product service on the given port
challenge-14/solution-template.go:298
↓ 2 callers
Function
StartUserService
StartUserService starts the user service on the given port
challenge-14/solution-template.go:240
↓ 2 callers
Function
UpdateProductStock
UpdateProductStock updates the stock quantity of a product
packages/gorm/challenge-3-migrations/solution-template.go:84
↓ 2 callers
Function
UpsertUser
UpsertUser creates or updates a user handling conflicts using OnConflict
packages/gorm/challenge-5-generics/solution-template.go:88
↓ 2 callers
Method
ValidateBook
(book *Book)
challenge-9/submissions/ashwinipatankar/solution-template.go:33
↓ 2 callers
Function
ValidateConfiguration
()
packages/cobra/challenge-4-advanced-features/submissions/odelbos/solution.go:431
↓ 2 callers
Function
ValidateConfiguration
ValidateConfiguration runs validation pipeline
packages/cobra/challenge-4-advanced-features/submissions/PolinaSvet/solution.go:645
↓ 2 callers
Function
ValidateProduct
(product *Product)
packages/cobra/challenge-3-subcommands-persistence/submissions/ashwinipatankar/solution.go:647
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/solution-template.go:84
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/odelbos/solution-template.go:84
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/Kosench/solution-template.go:86
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/PopovMarko/solution-template.go:86
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/shivamarora1/solution-template.go:85
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/czysiaczek/solution-template.go:85
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/mvsouza/solution-template.go:87
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/mick4711/solution-template.go:84
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/PolinaSvet/solution-template.go:84
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/y1hao/solution-template.go:85
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/longbui98/solution-template.go:85
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/ashwinipatankar/solution-template.go:85
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/Cpoing/solution-template.go:85
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/JackDalberg/solution-template.go:85
↓ 2 callers
Method
ValidateUser
ValidateUser checks if a user exists and is active
challenge-14/submissions/kuzminprog/solution-template.go:85
↓ 2 callers
Method
ValidateUserRPC
(ctx context.Context, req *ValidateUserRequest)
challenge-14/submissions/mvsouza/solution-template.go:150
↓ 2 callers
Method
WaitForCompletion
Wait for context cancellation or completion
challenge-30/solution-template.go:27
↓ 2 callers
Method
WaitForCompletion
Wait for context cancellation or completion
challenge-30/submissions/jrbarbati/solution-template.go:27
↓ 2 callers
Method
Withdraw
Withdraw removes the specified amount from the account balance. It returns an error if the amount is invalid, exceeds the transaction limit, or would
challenge-7/solution-template.go:82
↓ 2 callers
Function
WriteResponse
(w http.ResponseWriter, statusCode int, jsonData []byte)
challenge-15/submissions/nzamulov/solution-template.go:474
↓ 2 callers
Method
addNodeToGroup
(node *NodeLFU, group *FreqGroup)
challenge-28/submissions/PolinaSvet/solution-template.go:292
↓ 2 callers
Method
addToFront
addToFront adds a node to the front of the list
packages/gin/challenge-2-middleware/submissions/father-frog/solution.go:134
↓ 2 callers
Method
addToFront
(node *NodeLRU)
challenge-28/submissions/PolinaSvet/solution-template.go:84
↓ 2 callers
Method
addToFront
(node *NodeFIFO)
challenge-28/submissions/PolinaSvet/solution-template.go:494
↓ 2 callers
Function
authErrorResponse
(w http.ResponseWriter, err string)
challenge-15/submissions/PopovMarko/solution-template.go:264
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/solution-template.go:339
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/BrianHuang813/solution.go:507
↓ 2 callers
Function
authMiddleware
()
packages/gin/challenge-4-authentication/submissions/odelbos/solution.go:419
↓ 2 callers
Function
authMiddleware
authMiddleware returns Gin middleware that requires a valid "Bearer" JWT in the Authorization header and stores the user's ID and role in the context.
packages/gin/challenge-4-authentication/submissions/PopovMarko/solution.go:631
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/yogtanko/solution.go:585
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/PolinaSvet/solution.go:529
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/22-7-co/solution.go:509
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/q1ngy/solution.go:471
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/ItalloMangueBoy/solution.go:539
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/law-lee/solution.go:495
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/father-frog/solution.go:598
↓ 2 callers
Function
authMiddleware
Middleware: JWT Authentication
packages/gin/challenge-4-authentication/submissions/sweet-boby/solution.go:471
↓ 2 callers
Function
authResponse
(w http.ResponseWriter, r *http.Request, redirectUri string, response map[string]string)
challenge-15/submissions/PopovMarko/solution-template.go:281
↓ 2 callers
Function
backup_readme
Create a backup of README.md before testing.
scripts/test_scoreboards.py:86
↓ 2 callers
Function
bfs
(graph map[int][]int, start int)
challenge-4/submissions/y1hao/solution-template.go:7
↓ 2 callers
Function
binarySearchLIS
(nums []int)
challenge-24/submissions/odelbos/solution-template.go:82
↓ 2 callers
Function
bubbleSort
We don't know that there is always a given denominations array. So, it is nice to sort it.
challenge-22/submissions/muhammedkucukaslan/solution-template.go:69
↓ 2 callers
Method
bubbleUp
(ind int)
challenge-25/submissions/Gandook/solution-template.go:41
↓ 2 callers
Method
buildCodeReviewPrompt
buildCodeReviewPrompt creates the prompt for code review
web-ui/internal/services/ai.go:355
↓ 2 callers
Function
buildLargeLinearGraph
(size int)
challenge-4/solution-template_test.go:51
↓ 2 callers
Method
calculateAverageWaitTimeLocked
calculateAverageWaitTimeLocked updates the rolling average wait duration. The caller must hold tb.mu.
challenge-29/submissions/PopovMarko/solution-template.go:247
↓ 2 callers
Method
calculateAverageWaitTimeLocked
calculateAverageWaitTimeLocked updates the rolling average wait duration. The caller must hold sw.mu.
challenge-29/submissions/PopovMarko/solution-template.go:615
↓ 2 callers
Method
calculateAverageWaitTimeLocked
calculateAverageWaitTimeLocked updates the rolling average wait duration. The caller must hold fw.mu.
challenge-29/submissions/PopovMarko/solution-template.go:863
↓ 2 callers
Method
calculateWaitTimeLocked
calculateWaitTimeLocked estimates the wait needed for the current queue depth. The caller must hold tb.mu.
challenge-29/submissions/PopovMarko/solution-template.go:239
↓ 2 callers
Method
calculateWaitTimeLocked
calculateWaitTimeLocked returns the duration until the oldest request expires. The caller must hold sw.mu.
challenge-29/submissions/PopovMarko/solution-template.go:601
↓ 2 callers
Method
calculateWaitTimeLocked
calculateWaitTimeLocked returns the time until the current fixed window ends. The caller must hold fw.mu.
challenge-29/submissions/PopovMarko/solution-template.go:849
↓ 2 callers
Method
callHalfOpen
(operation func() (interface{}, error))
challenge-20/submissions/amrshaban2005/solution-template.go:209
↓ 2 callers
Method
checkState
()
challenge-20/submissions/imankhodadi/solution-template.go:115
↓ 2 callers
Method
cleanupOldRequests
(now time.Time)
challenge-29/submissions/PolinaSvet/solution-template.go:300
↓ 2 callers
Function
cloneToken
(t *Token)
challenge-15/submissions/PopovMarko/solution-template.go:707
↓ 2 callers
Method
compareShape
(a, b Shape)
challenge-10/submissions/kuzminprog/solution-template.go:182
↓ 2 callers
Method
createFreqGroup
(freq int)
challenge-28/submissions/PolinaSvet/solution-template.go:250
↓ 2 callers
Function
createHashByBook
(book *Book)
challenge-9/submissions/PolinaSvet/solution-template.go:90
↓ 2 callers
Method
createHashByUser
(user *User)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:73
↓ 2 callers
Method
createPackageLeaderboard
createPackageLeaderboard creates a leaderboard for package challenges similar to classic challenges
web-ui/internal/handlers/web.go:651
↓ 2 callers
Function
displayProductsTable
(cmd *cobra.Command, products []Product)
packages/cobra/challenge-3-subcommands-persistence/submissions/PolinaSvet/solution.go:517
↓ 2 callers
Method
doTokenRequest
doTokenRequest sends a prepared token request, decodes the JSON response, and on success updates the client's AccessToken, RefreshToken, and TokenExpi
challenge-15/submissions/PopovMarko/solution-template.go:832
↓ 2 callers
Function
doesWithdrawalGoBelowMinBalance
(withdrawalAmt, balance, minBalance float64)
challenge-7/submissions/DavidCao22/solution-template.go:180
↓ 2 callers
Method
employeeIndex
(id int)
challenge-3/submissions/mczajk/solution-template.go:16
↓ 2 callers
Function
extractBearerToken
(token string)
packages/gin/challenge-4-authentication/submissions/father-frog/solution.go:941
↓ 2 callers
Function
fileExists
fileExists checks if a file exists
packages/cobra/challenge-2-flags-args/submissions/odelbos/solution.go:336
← previous
next →
1,101–1,200 of 12,886, ranked by callers