MCPcopy Create free account

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

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

↓ 6 callersFunctionNewPipeline
NewPipeline creates a new processing pipeline with specified components
challenge-12/solution-template.go:102
↓ 6 callersMethodOptimizedSearch
OptimizedSearch performs a search query with optimal index usage
packages/mongodb/challenge-4-indexing-performance/solution-template.go:136
↓ 6 callersMethodPerformTextSearch
PerformTextSearch executes optimized text search queries
packages/mongodb/challenge-4-indexing-performance/solution-template.go:163
↓ 6 callersMethodRegisterClient
RegisterClient registers a new OAuth2 client
challenge-15/solution-template.go:134
↓ 6 callersFunctionResponseSuccess
(data interface{}, code int)
packages/gin/challenge-1-basic-routing/submissions/shansing/solution.go:32
↓ 6 callersMethodUpdate
(id int, book *User)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:47
↓ 6 callersMethodensureDB
EnsureDB is a nil pointer guard for all methods
challenge-13/submissions/PopovMarko/solution-template.go:58
↓ 6 callersFunctiongetServiceData
X. Main ======================================================================= for test
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:461
↓ 6 callersFunctionisPositive
(number float64)
challenge-10/submissions/Johrespi/solution-template.go:25
↓ 6 callersFunctionputUser
(user User)
packages/gin/challenge-4-authentication/submissions/father-frog/solution.go:963
↓ 6 callersFunctionsetupTestDir
TestSetup creates a temporary directory for testing
packages/cobra/challenge-2-flags-args/solution-template_test.go:18
↓ 6 callersFunctionsuccessResponse
successResponse writes a standardized success response carrying the given data, message, and HTTP status code.
packages/gin/challenge-1-basic-routing/submissions/PopovMarko/solution.go:260
↓ 6 callersFunctionvalidatePassword
TODO: Implement password security validatePassword validates password strength
packages/fiber/challenge-4-authentication/solution-template.go:95
↓ 5 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/hvijaycse/solution-template.go:162
↓ 5 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/shansing/solution-template.go:161
↓ 5 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/maket12/solution-template.go:169
↓ 5 callersMethodClone
()
challenge-20/submissions/mvsouza/solution-template.go:44
↓ 5 callersMethodContains
Contains returns true if the set contains the given element
challenge-27/submissions/mick4711/solution-template.go:188
↓ 5 callersMethodCreateOrder
CreateOrder creates a new order
challenge-14/solution-template.go:208
↓ 5 callersFunctionCreatePostWithTags
CreatePostWithTags creates a new post with specified tags
packages/gorm/challenge-2-associations/solution-template.go:57
↓ 5 callersFunctionCreateProduct
CreateProduct creates a new product with validation
packages/gorm/challenge-3-migrations/solution-template.go:72
↓ 5 callersFunctionCreateUsersInBatches
CreateUsersInBatches creates multiple users in batches using generics API
packages/gorm/challenge-5-generics/solution-template.go:76
↓ 5 callersFunctionDPLongestIncreasingSubsequence
DPLongestIncreasingSubsequence finds the length of the longest increasing subsequence using a standard dynamic programming approach with O(n²) time co
challenge-24/solution-template.go:45
↓ 5 callersMethodElements
Elements returns a slice containing all elements in the set
challenge-27/submissions/maket12/solution-template.go:204
↓ 5 callersMethodEnqueue
Enqueue adds an element to the end of the queue
challenge-27/solution-template.go:94
↓ 5 callersMethodExecuteWithContext
Execute a task with context cancellation support
challenge-30/solution-template.go:24
↓ 5 callersMethodFindEmployeeByID
FindEmployeeByID finds and returns an employee by their ID.
challenge-3/solution-template.go:33
↓ 5 callersFunctionGenerateRandomString
GenerateRandomString generates a random string of the specified length
challenge-15/submissions/odelbos/solution-template.go:148
↓ 5 callersFunctionGenerateRandomString
TODO: You allocate length random bytes but then base64-encode them (which expands the output) and truncate back to length characters. Each base64 char
challenge-15/submissions/imankhodadi/solution-template.go:138
↓ 5 callersFunctionGenerateRandomString
GenerateRandomString generates a random string of the specified length
challenge-15/submissions/mvsouza/solution-template.go:176
↓ 5 callersFunctionGenerateRandomString
GenerateRandomString generates a random string of the specified length
challenge-15/submissions/Cpoing/solution-template.go:156
↓ 5 callersMethodGet
(key string)
challenge-28/solution-template.go:142
↓ 5 callersMethodGet
(key string)
challenge-28/submissions/imankhodadi/solution-template.go:278
↓ 5 callersMethodGetAccountBalance
GetAccountBalance retrieves current account balance with version info
packages/mongodb/challenge-5-transactions-advanced/solution-template.go:112
↓ 5 callersMethodGetCustomerAnalytics
GetCustomerAnalytics analyzes customer behavior using aggregation
packages/mongodb/challenge-3-aggregation-pipeline/solution-template.go:133
↓ 5 callersMethodGetOrderTrends
GetOrderTrends analyzes order trends over time
packages/mongodb/challenge-3-aggregation-pipeline/solution-template.go:160
↓ 5 callersMethodGetProductsWithPagination
GetProductsWithPagination retrieves products with pagination support
packages/mongodb/challenge-2-queries-filtering/solution-template.go:136
↓ 5 callersMethodGetRevenueByMonth
GetRevenueByMonth calculates monthly revenue using aggregation
packages/mongodb/challenge-3-aggregation-pipeline/solution-template.go:119
↓ 5 callersMethodGetState
GetState returns the current state of the circuit breaker
challenge-20/submissions/muhammedkucukaslan/solution-template.go:126
↓ 5 callersMethodGetState
GetState returns the current state of the circuit breaker
challenge-20/submissions/JackDalberg/solution-template.go:147
↓ 5 callersMethodGetTopRatedProducts
GetTopRatedProducts retrieves highest rated products in category
packages/mongodb/challenge-2-queries-filtering/solution-template.go:216
↓ 5 callersMethodGetTopSellingProducts
GetTopSellingProducts finds top-selling products using aggregation
packages/mongodb/challenge-3-aggregation-pipeline/solution-template.go:105
↓ 5 callersMethodGetUser
GetUser retrieves a user by ID from the database
packages/mongodb/challenge-1-connection-crud/solution-template.go:68
↓ 5 callersFunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/solution-template.go:32
↓ 5 callersMethodHandleToken
HandleToken handles the token endpoint
challenge-15/solution-template.go:155
↓ 5 callersFunctionHighAllocationSearch
HighAllocationSearch searches for all occurrences of a substring and creates a map with their positions TODO: Optimize this function to reduce allocat
challenge-16/solution-template.go:91
↓ 5 callersMethodHitRate
()
challenge-28/solution-template.go:72
↓ 5 callersMethodIsDisconnected
()
challenge-8/submissions/nzamulov/solution-template.go:23
↓ 5 callersFunctionNaivePatternMatch
NaivePatternMatch performs a brute force search for pattern in text. Returns a slice of all starting indices where the pattern is found.
challenge-23/solution-template.go:43
↓ 5 callersMethodProcess
Process runs the complete pipeline
challenge-12/solution-template.go:108
↓ 5 callersMethodPush
Push adds an element to the top of the stack
challenge-27/solution-template.go:46
↓ 5 callersFunctionSaveInventory
SaveInventory saves inventory data to JSON file
packages/cobra/challenge-3-subcommands-persistence/submissions/PolinaSvet/solution.go:409
↓ 5 callersMethodSearchProductsByName
SearchProductsByName searches products by name using regex
packages/mongodb/challenge-2-queries-filtering/solution-template.go:116
↓ 5 callersMethodUnfreezeAccount
UnfreezeAccount unfreezes a frozen account
packages/mongodb/challenge-5-transactions-advanced/solution-template.go:155
↓ 5 callersMethodUpdateUser
UpdateUser updates an existing user in the database
packages/mongodb/challenge-1-connection-crud/solution-template.go:81
↓ 5 callersMethodcallLLMWithOpts
callLLMWithOpts allows specifying whether JSON output is expected (to enforce provider features)
web-ui/internal/services/ai.go:442
↓ 5 callersFunctioncheckBalance
(balance float64, minBalance float64)
challenge-7/submissions/shansing/solution-template.go:182
↓ 5 callersMethodcreateFallbackReview
createFallbackReview creates a reasonable fallback when AI parsing fails
web-ui/internal/services/ai.go:710
↓ 5 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/odelbos/solution.go:224
↓ 5 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/imankhodadi/solution.go:238
↓ 5 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/yogtanko/solution.go:282
↓ 5 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/Mxn-ptr/solution.go:209
↓ 5 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/PolinaSvet/solution.go:244
↓ 5 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/q1ngy/solution.go:216
↓ 5 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/ItalloMangueBoy/solution.go:249
↓ 5 callersFunctionfindUserByID
(id int)
packages/gin/challenge-4-authentication/submissions/law-lee/solution.go:222
↓ 5 callersFunctionfindUserByID
Find user by ID in users slice
packages/gin/challenge-4-authentication/submissions/father-frog/solution.go:291
↓ 5 callersFunctiongetRequestId
----------------------------------------------------------- Helpers -----------------------------------------------------------
packages/fiber/challenge-2-middleware/submissions/odelbos/solution.go:341
↓ 5 callersFunctiongetServiceData
()
packages/gin/challenge-2-middleware/submissions/PolinaSvet/solution.go:180
↓ 5 callersMethodgetUsernameFromCookie
getUsernameFromCookie retrieves the username from cookie
web-ui/internal/handlers/web.go:364
↓ 5 callersMethodreadFileContent
(filePath string)
web-ui/internal/services/package.go:395
↓ 5 callersFunctionsuccessResponse
successResponse writes a standard success APIResponse with the given data, message, and HTTP status, echoing the X-Request-ID header.
packages/gin/challenge-3-validation-errors/submissions/PopovMarko/solution.go:421
↓ 5 callersFunctionvalidateFileName
validateFileName checks if filename is valid
packages/cobra/challenge-2-flags-args/solution-template.go:323
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/odelbos/solution-template.go:149
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/kiramux/solution-template.go:165
↓ 4 callersMethodAdd
(element T)
challenge-27/submissions/imankhodadi/solution-template.go:115
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/YounesBouchbouk/solution-template.go:187
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/mvsouza/solution-template.go:155
↓ 4 callersMethodAdd
(value T)
challenge-27/submissions/Ali-Fartoot/solution-template.go:119
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/PolinaSvet/solution-template.go:213
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/y1hao/solution-template.go:156
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/cep-ter/solution-template.go:163
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/xyersh/solution-template.go:199
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/ImHotDog/solution-template.go:177
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/Johrespi/solution-template.go:182
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/ashwinipatankar/solution-template.go:213
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/KhaledMosaad/solution-template.go:192
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/nzamulov/solution-template.go:153
↓ 4 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/submissions/Gandook/solution-template.go:168
↓ 4 callersFunctionBinarySearch
BinarySearch performs a standard binary search to find the target in the sorted array. Returns the index of the target if found, or -1 if not found.
challenge-21/solution-template.go:28
↓ 4 callersFunctionCelsiusToFahrenheit
CelsiusToFahrenheit converts a temperature from Celsius to Fahrenheit Formula: F = C × 9/5 + 32
challenge-18/solution-template.go:21
↓ 4 callersMethodCheckInventory
(ctx context.Context, productID int64, quantity int32)
challenge-14/solution-template.go:374
↓ 4 callersFunctionCoinCombination
CoinCombination returns a map with the specific combination of coins that gives the minimum number. The keys are coin denominations and values are the
challenge-22/solution-template.go:40
↓ 4 callersMethodContains
Contains returns true if the set contains the given element
challenge-27/submissions/odelbos/solution-template.go:159
↓ 4 callersMethodContains
Contains returns true if the set contains the given element
challenge-27/submissions/YounesBouchbouk/solution-template.go:222
↓ 4 callersMethodContains
Contains returns true if the set contains the given element
challenge-27/submissions/ImHotDog/solution-template.go:187
↓ 4 callersMethodCreateOptimalIndexes
CreateOptimalIndexes creates a comprehensive set of indexes for optimal performance
packages/mongodb/challenge-4-indexing-performance/solution-template.go:94
↓ 4 callersMethodCreateUser
(user *User)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:216
↓ 4 callersMethodDeleteUser
DeleteUser removes a user from the database
packages/mongodb/challenge-1-connection-crud/solution-template.go:94
↓ 4 callersMethodElements
Elements returns a slice containing all elements in the set
challenge-27/submissions/hvijaycse/solution-template.go:191
← previousnext →201–300 of 12,886, ranked by callers