MCPcopy Create free account

hub / github.com/RezaSi/go-interview-practice / functions

Functions12,886 in github.com/RezaSi/go-interview-practice

↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/alle2k/solution.go:222
↓ 3 callersFunctionfindUserByID
(id int)
packages/gin/challenge-1-basic-routing/submissions/imankhodadi/solution.go:73
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/nguyenvanzk/solution.go:239
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/yogtanko/solution.go:245
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/Mxn-ptr/solution.go:233
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/22-7-co/solution.go:253
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/nbploc08/solution.go:211
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/RuslanG003/solution.go:263
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/awsl1110/solution.go:150
↓ 3 callersFunctionfindUserByID
(id int)
packages/gin/challenge-1-basic-routing/submissions/Johrespi/solution.go:203
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/OrangePanda2022/solution.go:270
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/shansing/solution.go:235
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/AlexO-85/solution.go:246
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/RezaSi/solution.go:241
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/ItalloMangueBoy/solution.go:273
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/yllmis/solution.go:270
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/Onkar-25/solution.go:251
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/father-frog/solution.go:254
↓ 3 callersFunctionfindUserByID
Helper function to find user by ID
packages/gin/challenge-1-basic-routing/submissions/zylbeyondlimits/solution.go:202
↓ 3 callersFunctionfindUserByUsername
-------------------------------------------------------------------- Helper functions ----------------------------------------------------------------
packages/fiber/challenge-4-authentication/submissions/odelbos/solution.go:366
↓ 3 callersFunctionfindValue
(n *html.Node, nodeName string)
challenge-11/submissions/nzamulov/solution-template.go:325
↓ 3 callersFunctiongenerateJWT
-------------------------------------------------------------------- JWT functions -------------------------------------------------------------------
packages/fiber/challenge-4-authentication/submissions/odelbos/solution.go:136
↓ 3 callersFunctiongenerateRandomSlice
Helper function to generate random slices for testing
challenge-16/solution-template_test.go:14
↓ 3 callersFunctiongenerateTokens
(clientID, userID string, scopes []string)
challenge-15/submissions/PopovMarko/solution-template.go:583
↓ 3 callersFunctiongenerateTokens
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 callersFunctiongetID
(path string)
challenge-9/submissions/nzamulov/solution-template.go:351
↓ 3 callersFunctiongetIDFromPath
(path string)
challenge-9/submissions/imankhodadi/solution-template.go:363
↓ 3 callersFunctiongetUserIdFromPath
getUserIdFromPath extracts the ":id" path parameter and parses it as an integer.
packages/gin/challenge-1-basic-routing/submissions/PopovMarko/solution.go:219
↓ 3 callersMethodhasUserAttemptedPackageChallenge
hasUserAttemptedPackageChallenge checks if a user has attempted a package challenge
web-ui/internal/handlers/web.go:577
↓ 3 callersFunctionhashPassword
(password string)
packages/gin/challenge-4-authentication/submissions/odelbos/solution.go:122
↓ 3 callersFunctionhashPassword
hashPassword returns the bcrypt hash of the given plaintext password.
packages/gin/challenge-4-authentication/submissions/PopovMarko/solution.go:138
↓ 3 callersFunctionhashPassword
(password string)
packages/gin/challenge-4-authentication/submissions/imankhodadi/solution.go:127
↓ 3 callersFunctionhashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/yogtanko/solution.go:169
↓ 3 callersFunctionhashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/Mxn-ptr/solution.go:113
↓ 3 callersFunctionhashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/PolinaSvet/solution.go:129
↓ 3 callersFunctionhashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/22-7-co/solution.go:131
↓ 3 callersFunctionhashPassword
Implement password hashing
packages/gin/challenge-4-authentication/submissions/q1ngy/solution.go:119
↓ 3 callersFunctionhashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/ItalloMangueBoy/solution.go:128
↓ 3 callersFunctionhashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/law-lee/solution.go:126
↓ 3 callersFunctionhashPassword
hashPassword returns a hash of the password with bcrypt cost 12
packages/gin/challenge-4-authentication/submissions/father-frog/solution.go:174
↓ 3 callersFunctionhashPassword
TODO: Implement password hashing
packages/gin/challenge-4-authentication/submissions/sweet-boby/solution.go:129
↓ 3 callersMethodinferDifficultyFromOrder
(order int)
web-ui/internal/services/package.go:253
↓ 3 callersMethodisAllowedLocked
()
challenge-29/submissions/PopovMarko/solution-template.go:93
↓ 3 callersMethodisAllowedLocked
()
challenge-29/submissions/PopovMarko/solution-template.go:405
↓ 3 callersMethodisAllowedLodked
()
challenge-29/submissions/PopovMarko/solution-template.go:670
↓ 3 callersMethodisAllowedNLocked
(n int)
challenge-29/submissions/PopovMarko/solution-template.go:141
↓ 3 callersMethodisAllowedNLocked
(n int)
challenge-29/submissions/PopovMarko/solution-template.go:456
↓ 3 callersMethodisAllowedNLocked
(n int)
challenge-29/submissions/PopovMarko/solution-template.go:713
↓ 3 callersFunctionisAmtValid
(amount float64)
challenge-7/submissions/DavidCao22/solution-template.go:170
↓ 3 callersMethodisCurrentClient
isCurrentClient returns true if Client not nil and equal to client in storage
challenge-8/submissions/PopovMarko/solution-template.go:158
↓ 3 callersFunctionisStrongPassword
TODO: Implement password strength validation
packages/gin/challenge-4-authentication/solution-template.go:96
↓ 3 callersMethodloadChallenge
(challengePath, challengeName string)
web-ui/internal/services/package.go:323
↓ 3 callersMethodmoveToFront
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 callersMethodmoveToTop
(node *DLL)
challenge-28/submissions/nzamulov/solution-template.go:92
↓ 3 callersFunctionparseIDParam
parseIDParam parses and validates the ID parameter from the URL
packages/gin/challenge-2-middleware/submissions/father-frog/solution.go:629
↓ 3 callersFunctionparseIDParam
parseIDParam parses and validates the ID parameter from the URL
packages/gin/challenge-1-basic-routing/submissions/father-frog/solution.go:282
↓ 3 callersMethodredirectWithError
(w http.ResponseWriter, r *http.Request, redirectURI, errorCode, errorDescription, state string)
challenge-15/submissions/Kosench/solution-template.go:311
↓ 3 callersMethodremoveLRUNode
removeLRUNode unlinks node from the doubly-linked list and deletes its map entry.
challenge-28/submissions/PopovMarko/solution-template.go:107
↓ 3 callersMethodremoveNode
(node *NodeLRU)
challenge-28/submissions/PolinaSvet/solution-template.go:67
↓ 3 callersMethodremoveNode
(node *NodeFIFO)
challenge-28/submissions/PolinaSvet/solution-template.go:477
↓ 3 callersMethodremoveNodeFromGroup
(node *NodeLFU)
challenge-28/submissions/PolinaSvet/solution-template.go:261
↓ 3 callersFunctionretrieveID
Helper function to retrieve ID
packages/gin/challenge-1-basic-routing/submissions/Alibiderci/solution.go:371
↓ 3 callersMethodrun
Main execution function.
scripts/generate_contributor_badges.py:424
↓ 3 callersFunctionrun_script
Run a script and return success status and output.
scripts/test_scoreboards.py:12
↓ 3 callersFunctionsanitizeProduct
TODO: Implement input sanitization
packages/gin/challenge-3-validation-errors/solution-template.go:134
↓ 3 callersFunctionsanitizeProduct
(product *Product)
packages/gin/challenge-3-validation-errors/submissions/imankhodadi/solution.go:225
↓ 3 callersFunctionsanitizeProduct
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 callersMethodsaveHighlights
()
web-ui/static/js/main.js:347
↓ 3 callersMethodsetState
setState changes the circuit breaker state and triggers callbacks
challenge-20/submissions/mvsouza/solution-template.go:154
↓ 3 callersMethodsetState
setState changes the circuit breaker state and triggers callbacks
challenge-20/submissions/muhammedkucukaslan/solution-template.go:140
↓ 3 callersMethodsetState
setState changes the circuit breaker state and triggers callbacks
challenge-20/submissions/JackDalberg/solution-template.go:168
↓ 3 callersMethodsetUsernameCookie
setUsernameCookie sets the username cookie
web-ui/internal/handlers/api.go:435
↓ 3 callersMethodupdateHighlightCount
()
web-ui/static/js/main.js:355
↓ 3 callersFunctionvalidate
(text, pattern string)
challenge-23/submissions/ashwinipatankar/solution-template.go:199
↓ 3 callersMethodvalidateAmount
(amount float64)
challenge-7/submissions/kuzminprog/solution-template.go:142
↓ 3 callersFunctionvalidateProduct
(product *Product)
packages/gin/challenge-3-validation-errors/submissions/odelbos/solution.go:120
↓ 3 callersFunctionvalidateProduct
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 callersFunctionvalidateProduct
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 callersFunctionvalidateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/yogtanko/solution.go:154
↓ 3 callersFunctionvalidateProduct
(product *Product)
packages/gin/challenge-3-validation-errors/submissions/Mxn-ptr/solution.go:134
↓ 3 callersFunctionvalidateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/PolinaSvet/solution.go:133
↓ 3 callersFunctionvalidateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/22-7-co/solution.go:153
↓ 3 callersFunctionvalidateProduct
Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/q1ngy/solution.go:138
↓ 3 callersFunctionvalidateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/ItalloMangueBoy/solution.go:140
↓ 3 callersFunctionvalidateProduct
Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/father-frog/solution.go:149
↓ 3 callersFunctionvalidateProduct
TODO: Implement comprehensive product validation
packages/gin/challenge-3-validation-errors/submissions/sweet-boby/solution.go:139
↓ 3 callersFunctionvalidateProduct
------------------------------------------------------------------- Validation helper functions ------------------------------------------------------
packages/fiber/challenge-3-validation-errors/submissions/odelbos/solution.go:104
↓ 3 callersFunctionvalidateToken
TODO: Implement JWT token validation
packages/gin/challenge-4-authentication/solution-template.go:134
↓ 3 callersFunctionvalidateToken
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 callersFunctionvalidateToken
TODO: Implement JWT token validation
packages/gin/challenge-4-authentication/submissions/yogtanko/solution.go:235
↓ 3 callersFunctionwriteJsonReponse
(w http.ResponseWriter, o any)
challenge-9/submissions/mvsouza/solution-template.go:316
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/BrianHuang813/solution-template.go:17
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/yz4230/solution-template.go:17
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/upsaurav12/solution-template.go:17
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/ingingX/solution-template.go:17
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/goholic/solution-template.go:17
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/Sairaviteja27/solution-template.go:17
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/x890c/solution-template.go:17
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/jrbarbati/solution-template.go:17
↓ 2 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/submissions/4m4x/solution-template.go:17
← previousnext →501–600 of 12,886, ranked by callers