MCPcopy Create free account

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

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

↓ 2 callersMethodGetMetrics
()
challenge-29/submissions/nzamulov/solution-template.go:20
↓ 2 callersFunctionGetMigrationVersion
(db *gorm.DB)
packages/gorm/challenge-3-migrations/submissions/odelbos/solution.go:121
↓ 2 callersFunctionGetMigrationVersion
(db *gorm.DB)
packages/gorm/challenge-3-migrations/submissions/imankhodadi/solution.go:151
↓ 2 callersFunctionGetPostWithUserAndTags
GetPostWithUserAndTags retrieves a post with user and tags preloaded
packages/gorm/challenge-2-associations/solution-template.go:75
↓ 2 callersFunctionGetPostsByTag
GetPostsByTag retrieves all posts that have a specific tag
packages/gorm/challenge-2-associations/solution-template.go:63
↓ 2 callersMethodGetProduct
(ctx context.Context, productID int64)
challenge-14/solution-template.go:368
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/odelbos/solution-template.go:108
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/Kosench/solution-template.go:110
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/PopovMarko/solution-template.go:110
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/czysiaczek/solution-template.go:109
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/mvsouza/solution-template.go:111
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/longbui98/solution-template.go:109
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/ashwinipatankar/solution-template.go:109
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-14/submissions/kuzminprog/solution-template.go:109
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-13/submissions/PolinaSvet/solution-template.go:91
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-13/submissions/wgasparin/solution-template.go:68
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-13/submissions/KhaledMosaad/solution-template.go:69
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-13/submissions/Cpoing/solution-template.go:69
↓ 2 callersMethodGetProduct
GetProduct retrieves a product by ID
challenge-13/submissions/JackDalberg/solution-template.go:75
↓ 2 callersMethodGetProductRPC
gRPC method handlers for ProductService
challenge-14/submissions/mvsouza/solution-template.go:159
↓ 2 callersMethodGetReadCount
()
challenge-12/solution-template_test.go:32
↓ 2 callersMethodGetState
()
challenge-20/submissions/PolinaSvet/solution-template.go:56
↓ 2 callersMethodGetTransformCount
()
challenge-12/solution-template_test.go:102
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/solution-template.go:75
↓ 2 callersMethodGetUser
(ctx context.Context, userID int64)
challenge-14/solution-template.go:322
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/odelbos/solution-template.go:75
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/Kosench/solution-template.go:77
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/PopovMarko/solution-template.go:77
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/shivamarora1/solution-template.go:76
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/czysiaczek/solution-template.go:76
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/mvsouza/solution-template.go:78
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/mick4711/solution-template.go:75
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/PolinaSvet/solution-template.go:75
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/y1hao/solution-template.go:76
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/longbui98/solution-template.go:76
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/ashwinipatankar/solution-template.go:76
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/Cpoing/solution-template.go:76
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/JackDalberg/solution-template.go:76
↓ 2 callersMethodGetUser
GetUser retrieves a user by ID
challenge-14/submissions/kuzminprog/solution-template.go:76
↓ 2 callersMethodGetUserAttempts
GetUserAttempts returns the cached user attempts or loads them if not cached
web-ui/internal/services/user.go:119
↓ 2 callersFunctionGetUserByID
(db *gorm.DB, id uint)
packages/gorm/challenge-1-crud-operations/submissions/imankhodadi/solution.go:34
↓ 2 callersFunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/Mxn-ptr/solution.go:45
↓ 2 callersFunctionGetUserEngagementStats
GetUserEngagementStats calculates engagement statistics for a user
packages/gorm/challenge-4-advanced-queries/solution-template.go:65
↓ 2 callersMethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/mvsouza/solution-template.go:142
↓ 2 callersFunctionGetUserWithPosts
GetUserWithPosts retrieves a user with all their posts preloaded
packages/gorm/challenge-2-associations/solution-template.go:51
↓ 2 callersMethodGetValidateCount
()
challenge-12/solution-template_test.go:64
↓ 2 callersMethodGetWriteCount
()
challenge-12/solution-template_test.go:138
↓ 2 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/submissions/PolinaSvet/solution-template.go:129
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the stack contains no elements
challenge-27/submissions/odelbos/solution-template.go:79
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the queue contains no elements
challenge-27/submissions/odelbos/solution-template.go:130
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the stack contains no elements
challenge-27/submissions/kiramux/solution-template.go:89
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the queue contains no elements
challenge-27/submissions/kiramux/solution-template.go:144
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the stack contains no elements
challenge-27/submissions/hvijaycse/solution-template.go:84
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the queue contains no elements
challenge-27/submissions/hvijaycse/solution-template.go:140
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the stack contains no elements
challenge-27/submissions/mick4711/solution-template.go:94
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the queue contains no elements
challenge-27/submissions/mick4711/solution-template.go:152
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the stack contains no elements
challenge-27/submissions/PolinaSvet/solution-template.go:92
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the stack contains no elements
challenge-27/submissions/y1hao/solution-template.go:84
↓ 2 callersMethodIsEmpty
IsEmpty returns true if the queue contains no elements
challenge-27/submissions/y1hao/solution-template.go:135
↓ 2 callersFunctionIsPalindrome
IsPalindrome checks if a string is a palindrome. A palindrome reads the same backward as forward, ignoring case, spaces, and punctuation.
challenge-17/submissions/PolinaSvet/solution-template.go:18
↓ 2 callersMethodListUsers
ListUsers returns list of connected users
challenge-8/submissions/PolinaSvet/solution-template.go:170
↓ 2 callersMethodLoadUserAttempts
LoadUserAttempts checks the filesystem for submission directories
web-ui/internal/services/user.go:29
↓ 2 callersFunctionMinCoins
MinCoins returns the minimum number of coins needed to make the given amount. If the amount cannot be made with the given denominations, return -1.
challenge-22/submissions/xyersh/solution-template.go:32
↓ 2 callersFunctionNewBankAccount
(id, owner string, initialBalance, minBalance float64)
challenge-7/submissions/imankhodadi/solution-template.go:60
↓ 2 callersFunctionNewBankAccount
(id, owner string, initialBalance, minBalance float64)
challenge-7/submissions/abhishek15032000/solution-template.go:113
↓ 2 callersFunctionNewBookHandler
NewBookHandler creates a new book handler
challenge-9/solution-template.go:87
↓ 2 callersFunctionNewBookService
NewBookService creates a new book service
challenge-9/solution-template.go:72
↓ 2 callersFunctionNewFIFOCache
NewFIFOCache returns a new FIFOCache with the given capacity. Returns nil if capacity is less than or equal to 0.
challenge-28/submissions/PopovMarko/solution-template.go:526
↓ 2 callersFunctionNewFIFOCache
NewFIFOCache creates a new FIFO cache with the specified capacity
challenge-28/submissions/PolinaSvet/solution-template.go:461
↓ 2 callersFunctionNewFieldTransformer
NewFieldTransformer creates a new field transformer
challenge-12/submissions/PolinaSvet/solution-template.go:232
↓ 2 callersFunctionNewFileReader
NewFileReader creates a new file reader
challenge-12/submissions/PolinaSvet/solution-template.go:62
↓ 2 callersFunctionNewFileWriter
NewFileWriter creates a new file writer
challenge-12/submissions/PolinaSvet/solution-template.go:327
↓ 2 callersFunctionNewInMemoryBookRepository
NewInMemoryBookRepository creates a new in-memory book repository
challenge-9/solution-template.go:46
↓ 2 callersFunctionNewJSONValidator
NewJSONValidator creates a new JSON validator
challenge-12/submissions/PolinaSvet/solution-template.go:122
↓ 2 callersFunctionNewLFUCache
NewLFUCache returns a new LFUCache with the given capacity. Returns nil if capacity is less than or equal to 0.
challenge-28/submissions/PopovMarko/solution-template.go:280
↓ 2 callersFunctionNewLFUCache
(capacity int)
challenge-28/submissions/imankhodadi/solution-template.go:214
↓ 2 callersFunctionNewLRUCache
NewLRUCache creates a new LRU cache with the specified capacity
challenge-28/submissions/nzamulov/solution-template.go:82
↓ 2 callersFunctionNewPair
NewPair creates a new pair with the given values
challenge-27/solution-template.go:19
↓ 2 callersFunctionNewPipeline
NewPipeline creates a new processing pipeline with specified components
challenge-12/submissions/PolinaSvet/solution-template.go:397
↓ 2 callersFunctionNewPriorityVertex
NewPriorityVertex constructs a *Vertex with the given graph index and distance.
challenge-25/submissions/PopovMarko/solution-template.go:166
↓ 2 callersFunctionNewRateLimiterFactory
NewRateLimiterFactory creates a new rate limiter factory
challenge-29/solution-template.go:259
↓ 2 callersFunctionNewTaskStore
NewTaskStore creates a new task store
packages/fiber/challenge-1-basic-routing/solution-template.go:25
↓ 2 callersFunctionNewTokenBucketLimiter
(refillRate int, capacity int)
challenge-29/submissions/imankhodadi/solution-template.go:76
↓ 2 callersFunctionOptimizedCalculation
OptimizedCalculation is your optimized version of ExpensiveCalculation It should produce identical results but perform better
challenge-16/solution-template.go:83
↓ 2 callersFunctionOptimizedSearch
OptimizedSearch is your optimized version of HighAllocationSearch It should produce identical results but perform better with fewer allocations
challenge-16/submissions/PolinaSvet/solution-template.go:155
↓ 2 callersFunctionOptimizedSort
OptimizedSort is your optimized version of SlowSort It should produce identical results but perform better
challenge-16/solution-template.go:29
↓ 2 callersFunctionOptimizedStringBuilder
OptimizedStringBuilder is your optimized version of InefficientStringBuilder It should produce identical results but perform better
challenge-16/solution-template.go:51
↓ 2 callersMethodPeek
Peek returns the top element without removing it Returns an error if the stack is empty
challenge-27/solution-template.go:60
↓ 2 callersMethodPop
Pop removes and returns the value at the head of the queue. It returns an error if the queue is empty.
challenge-25/submissions/PopovMarko/solution-template.go:91
↓ 2 callersFunctionPrintProducts
PrintProducts writes the given products as an aligned table to the command's output writer.
packages/cobra/challenge-3-subcommands-persistence/submissions/PopovMarko/solution.go:385
↓ 2 callersFunctionProcessItems
Helper function - process multiple items with context
challenge-30/solution-template.go:92
↓ 2 callersMethodPush
(v T)
challenge-4/submissions/kuzminprog/solution-template.go:21
↓ 2 callersMethodPush
(x any)
challenge-25/submissions/odelbos/solution-template.go:134
↓ 2 callersMethodPush
(x interface{})
challenge-25/submissions/imankhodadi/solution-template.go:105
↓ 2 callersFunctionRemoveDuplicates
RemoveDuplicates returns a new slice with duplicate values removed, preserving the original order of elements.
challenge-19/solution-template.go:37
↓ 2 callersMethodRemoveEmployee
(id int)
challenge-3/submissions/imankhodadi/solution-template.go:19
↓ 2 callersFunctionRequestIDMiddleware
TODO: Implement middleware functions RequestIDMiddleware generates a unique request ID for each request
packages/gin/challenge-2-middleware/solution-template.go:61
↓ 2 callersFunctionReverseSlice
ReverseSlice returns a new slice with elements in reverse order.
challenge-19/solution-template.go:43
↓ 2 callersFunctionRound
Round rounds a float64 value to the specified number of decimal places
challenge-18/submissions/fzzv/solution-template.go:36
↓ 2 callersFunctionRound
Round rounds a float64 value to the specified number of decimal places
challenge-18/submissions/yz4230/solution-template.go:34
← previousnext →901–1,000 of 12,886, ranked by callers