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
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/alle2k/solution.go:222
↓ 3 callers
Function
findUserByID
(id int)
packages/gin/challenge-1-basic-routing/submissions/imankhodadi/solution.go:73
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/nguyenvanzk/solution.go:239
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/yogtanko/solution.go:245
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/Mxn-ptr/solution.go:233
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/22-7-co/solution.go:253
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/nbploc08/solution.go:211
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/RuslanG003/solution.go:263
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/awsl1110/solution.go:150
↓ 3 callers
Function
findUserByID
(id int)
packages/gin/challenge-1-basic-routing/submissions/Johrespi/solution.go:203
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/OrangePanda2022/solution.go:270
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/shansing/solution.go:235
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/AlexO-85/solution.go:246
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/RezaSi/solution.go:241
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/ItalloMangueBoy/solution.go:273
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/yllmis/solution.go:270
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/Onkar-25/solution.go:251
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/father-frog/solution.go:254
↓ 3 callers
Function
findUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/zylbeyondlimits/solution.go:202
↓ 3 callers
Function
findUserByUsername
-------------------------------------------------------------------- Helper functions ----------------------------------------------------------------
packages/fiber/challenge-4-authentication/submissions/odelbos/solution.go:366
↓ 3 callers
Function
findValue
(n *html.Node, nodeName string)
challenge-11/submissions/nzamulov/solution-template.go:325
↓ 3 callers
Function
generateJWT
-------------------------------------------------------------------- JWT functions -------------------------------------------------------------------
packages/fiber/challenge-4-authentication/submissions/odelbos/solution.go:136
↓ 3 callers
Function
generateRandomSlice
Helper function to generate random slices for testing
challenge-16/solution-template_test.go:14
↓ 3 callers
Function
generateTokens
(clientID, userID string, scopes []string)
challenge-15/submissions/PopovMarko/solution-template.go:583
↓ 3 callers
Function
generateTokens
generateTokens creates a signed access token and refresh token for the user, records the refresh token in the store, and returns them as a TokenRespon
packages/gin/challenge-4-authentication/submissions/PopovMarko/solution.go:158
↓ 3 callers
Function
getID
(path string)
challenge-9/submissions/nzamulov/solution-template.go:351
↓ 3 callers
Function
getIDFromPath
(path string)
challenge-9/submissions/imankhodadi/solution-template.go:363
↓ 3 callers
Function
getUserIdFromPath
getUserIdFromPath extracts the ":id" path parameter and parses it as an integer.
packages/gin/challenge-1-basic-routing/submissions/PopovMarko/solution.go:219
↓ 3 callers
Method
hasUserAttemptedPackageChallenge
hasUserAttemptedPackageChallenge checks if a user has attempted a package challenge
web-ui/internal/handlers/web.go:577
↓ 3 callers
Function
hashPassword
(password string)
packages/gin/challenge-4-authentication/submissions/odelbos/solution.go:122
↓ 3 callers
Function
hashPassword
hashPassword returns the bcrypt hash of the given plaintext password.
packages/gin/challenge-4-authentication/submissions/PopovMarko/solution.go:138
↓ 3 callers
Function
hashPassword
(password string)
packages/gin/challenge-4-authentication/submissions/imankhodadi/solution.go:127
↓ 3 callers
Function
hashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/yogtanko/solution.go:169
↓ 3 callers
Function
hashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/Mxn-ptr/solution.go:113
↓ 3 callers
Function
hashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/PolinaSvet/solution.go:129
↓ 3 callers
Function
hashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/22-7-co/solution.go:131
↓ 3 callers
Function
hashPassword
Implement password hashing
packages/gin/challenge-4-authentication/submissions/q1ngy/solution.go:119
↓ 3 callers
Function
hashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/ItalloMangueBoy/solution.go:128
↓ 3 callers
Function
hashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/law-lee/solution.go:126
↓ 3 callers
Function
hashPassword
hashPassword returns a hash of the password with bcrypt cost 12
packages/gin/challenge-4-authentication/submissions/father-frog/solution.go:174
↓ 3 callers
Function
hashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/sweet-boby/solution.go:129
↓ 3 callers
Method
inferDifficultyFromOrder
(order int)
web-ui/internal/services/package.go:253
↓ 3 callers
Method
isAllowedLocked
()
challenge-29/submissions/PopovMarko/solution-template.go:93
↓ 3 callers
Method
isAllowedLocked
()
challenge-29/submissions/PopovMarko/solution-template.go:405
↓ 3 callers
Method
isAllowedLodked
()
challenge-29/submissions/PopovMarko/solution-template.go:670
↓ 3 callers
Method
isAllowedNLocked
(n int)
challenge-29/submissions/PopovMarko/solution-template.go:141
↓ 3 callers
Method
isAllowedNLocked
(n int)
challenge-29/submissions/PopovMarko/solution-template.go:456
↓ 3 callers
Method
isAllowedNLocked
(n int)
challenge-29/submissions/PopovMarko/solution-template.go:713
↓ 3 callers
Function
isAmtValid
(amount float64)
challenge-7/submissions/DavidCao22/solution-template.go:170
↓ 3 callers
Method
isCurrentClient
isCurrentClient returns true if Client not nil and equal to client in storage
challenge-8/submissions/PopovMarko/solution-template.go:158
↓ 3 callers
Function
isStrongPassword
TODO: Implement password strength validation
packages/gin/challenge-4-authentication/solution-template.go:96
↓ 3 callers
Method
loadChallenge
(challengePath, challengeName string)
web-ui/internal/services/package.go:323
↓ 3 callers
Method
moveToFront
moveToFront repositions node at the head of the list, marking it as most recently used. If the node is already tracked in the cache map it is unlinked
challenge-28/submissions/PopovMarko/solution-template.go:149
↓ 3 callers
Method
moveToTop
(node *DLL)
challenge-28/submissions/nzamulov/solution-template.go:92
↓ 3 callers
Function
parseIDParam
parseIDParam parses and validates the ID parameter from the URL
packages/gin/challenge-2-middleware/submissions/father-frog/solution.go:629
↓ 3 callers
Function
parseIDParam
parseIDParam parses and validates the ID parameter from the URL
packages/gin/challenge-1-basic-routing/submissions/father-frog/solution.go:282
↓ 3 callers
Method
redirectWithError
(w http.ResponseWriter, r *http.Request, redirectURI, errorCode, errorDescription, state string)
challenge-15/submissions/Kosench/solution-template.go:311
↓ 3 callers
Method
removeLRUNode
removeLRUNode unlinks node from the doubly-linked list and deletes its map entry.
challenge-28/submissions/PopovMarko/solution-template.go:107
↓ 3 callers
Method
removeNode
(node *NodeLRU)
challenge-28/submissions/PolinaSvet/solution-template.go:67
↓ 3 callers
Method
removeNode
(node *NodeFIFO)
challenge-28/submissions/PolinaSvet/solution-template.go:477
↓ 3 callers
Method
removeNodeFromGroup
(node *NodeLFU)
challenge-28/submissions/PolinaSvet/solution-template.go:261
↓ 3 callers
Function
retrieveID
Helper function to retrieve ID
packages/gin/challenge-1-basic-routing/submissions/Alibiderci/solution.go:371
↓ 3 callers
Method
run
Main execution function.
scripts/generate_contributor_badges.py:424
↓ 3 callers
Function
run_script
Run a script and return success status and output.
scripts/test_scoreboards.py:12
↓ 3 callers
Function
sanitizeProduct
TODO: Implement input sanitization
packages/gin/challenge-3-validation-errors/solution-template.go:134
↓ 3 callers
Function
sanitizeProduct
(product *Product)
packages/gin/challenge-3-validation-errors/submissions/imankhodadi/solution.go:225
↓ 3 callers
Function
sanitizeProduct
Sanitize input data: - Trim whitespace from strings - Convert currency to uppercase - Convert slug to lowercase - Calculate available inventory (quant
packages/gin/challenge-3-validation-errors/submissions/father-frog/solution.go:236
↓ 3 callers
Method
saveHighlights
()
web-ui/static/js/main.js:347
↓ 3 callers
Method
setState
setState changes the circuit breaker state and triggers callbacks
challenge-20/submissions/mvsouza/solution-template.go:154
↓ 3 callers
Method
setState
setState changes the circuit breaker state and triggers callbacks
challenge-20/submissions/muhammedkucukaslan/solution-template.go:140
↓ 3 callers
Method
setState
setState changes the circuit breaker state and triggers callbacks
challenge-20/submissions/JackDalberg/solution-template.go:168
↓ 3 callers
Method
setUsernameCookie
setUsernameCookie sets the username cookie
web-ui/internal/handlers/api.go:435
↓ 3 callers
Method
updateHighlightCount
()
web-ui/static/js/main.js:355
↓ 3 callers
Function
validate
(text, pattern string)
challenge-23/submissions/ashwinipatankar/solution-template.go:199
↓ 3 callers
Method
validateAmount
(amount float64)
challenge-7/submissions/kuzminprog/solution-template.go:142
↓ 3 callers
Function
validateProduct
(product *Product)
packages/gin/challenge-3-validation-errors/submissions/odelbos/solution.go:120
↓ 3 callers
Function
validateProduct
validateProduct runs the custom business-rule validations on product that cannot be expressed with gin binding tags: SKU format, currency code, catego
packages/gin/challenge-3-validation-errors/submissions/PopovMarko/solution.go:136
↓ 3 callers
Function
validateProduct
function signature is part of the assignment validateProduct validates a product's fields. Caller must hold productsMutex (at least RLock).
packages/gin/challenge-3-validation-errors/submissions/imankhodadi/solution.go:145
↓ 3 callers
Function
validateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/yogtanko/solution.go:154
↓ 3 callers
Function
validateProduct
(product *Product)
packages/gin/challenge-3-validation-errors/submissions/Mxn-ptr/solution.go:134
↓ 3 callers
Function
validateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/PolinaSvet/solution.go:133
↓ 3 callers
Function
validateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/22-7-co/solution.go:153
↓ 3 callers
Function
validateProduct
Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/q1ngy/solution.go:138
↓ 3 callers
Function
validateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/ItalloMangueBoy/solution.go:140
↓ 3 callers
Function
validateProduct
Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/father-frog/solution.go:149
↓ 3 callers
Function
validateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/sweet-boby/solution.go:139
↓ 3 callers
Function
validateProduct
------------------------------------------------------------------- Validation helper functions ------------------------------------------------------
packages/fiber/challenge-3-validation-errors/submissions/odelbos/solution.go:104
↓ 3 callers
Function
validateToken
TODO: Implement JWT token validation
packages/gin/challenge-4-authentication/solution-template.go:134
↓ 3 callers
Function
validateToken
validateToken parses and verifies the signed JWT, ensuring it uses HMAC signing and is not blacklisted, and returns its claims.
packages/gin/challenge-4-authentication/submissions/PopovMarko/solution.go:208
↓ 3 callers
Function
validateToken
TODO: Implement JWT token validation
packages/gin/challenge-4-authentication/submissions/yogtanko/solution.go:235
↓ 3 callers
Function
writeJsonReponse
(w http.ResponseWriter, o any)
challenge-9/submissions/mvsouza/solution-template.go:316
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/BrianHuang813/solution-template.go:17
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/yz4230/solution-template.go:17
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/upsaurav12/solution-template.go:17
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/ingingX/solution-template.go:17
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/goholic/solution-template.go:17
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/Sairaviteja27/solution-template.go:17
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/x890c/solution-template.go:17
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/jrbarbati/solution-template.go:17
↓ 2 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/4m4x/solution-template.go:17
← previous
next →
501–600 of 12,886, ranked by callers