MCPcopy Create free account

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

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

↓ 505 callersMethodRun
Run starts the server's main loop
challenge-8/submissions/PolinaSvet/solution-template.go:182
↓ 493 callersMethodGet
(key string)
challenge-28/submissions/nzamulov/solution-template.go:9
↓ 491 callersMethodContains
Contains returns true if the set contains the given element
challenge-27/solution-template.go:152
↓ 390 callersMethodError
()
challenge-7/solution-template.go:30
↓ 361 callersMethodError
()
packages/gin/challenge-2-middleware/submissions/sweet-boby/solution.go:275
↓ 311 callersMethodError
Error returns a string representation of the PipelineError
challenge-12/solution-template.go:74
↓ 296 callersMethodAdd
Add adds an element to the set if it's not already present
challenge-27/solution-template.go:142
↓ 295 callersMethodArea
()
challenge-10/submissions/ahmedpyarali2/solution-template.go:12
↓ 294 callersMethodClose
Close closes the gRPC connections
challenge-14/submissions/Kosench/solution-template.go:276
↓ 208 callersMethodString
()
challenge-10/submissions/abhishek15032000/solution-template.go:106
↓ 153 callersMethodWriteHeader
(code int)
challenge-9/submissions/PolinaSvet/solution-template.go:362
↓ 69 callersMethodWait
(ctx context.Context)
challenge-29/submissions/nzamulov/solution-template.go:15
↓ 65 callersMethodCreate
(book *User)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:46
↓ 56 callersMethodSize
()
challenge-28/submissions/nzamulov/solution-template.go:13
↓ 55 callersMethodLen
()
challenge-10/solution-template_test.go:441
↓ 54 callersMethodRemove
Remove removes a key from the cache
packages/gin/challenge-2-middleware/submissions/father-frog/solution.go:113
↓ 50 callersMethodPrint
()
challenge-27/submissions/PolinaSvet/solution-template.go:156
↓ 46 callersMethodWrite
(ctx context.Context, data []byte)
challenge-12/submissions/Cpoing/solution-template.go:31
↓ 35 callersMethodDelete
(id int)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:48
↓ 34 callersMethodLimit
()
challenge-29/submissions/nzamulov/solution-template.go:17
↓ 34 callersFunctionerrResponse
(c *gin.Context, status int, msg string)
packages/gin/challenge-4-authentication/submissions/odelbos/solution.go:683
↓ 30 callersMethodAllow
()
challenge-29/submissions/nzamulov/solution-template.go:13
↓ 26 callersMethodDelete
(key string)
challenge-28/submissions/nzamulov/solution-template.go:11
↓ 26 callersMethodRead
(ctx context.Context)
challenge-12/submissions/Cpoing/solution-template.go:16
↓ 26 callersFunctionerrResponse
(c fiber.Ctx, status int, msg string)
packages/fiber/challenge-4-authentication/submissions/odelbos/solution.go:407
↓ 24 callersFunctionfail
Create a helper function for preparing failure results.
challenge-13/submissions/DavidCao22/solution-template.go:272
↓ 24 callersMethodtokenError
(w http.ResponseWriter, errorCode, description string, statusCode int)
challenge-15/submissions/Kosench/solution-template.go:617
↓ 22 callersFunctionerrorResponse
(c *gin.Context, msg, err string, status int)
packages/gin/challenge-2-middleware/submissions/PopovMarko/solution.go:468
↓ 22 callersFunctionmax
(a, b int)
packages/gin/challenge-2-middleware/submissions/Onkar-25/solution.go:284
↓ 21 callersMethodGetBookByID
(id string)
challenge-9/submissions/Gandook/solution-template.go:147
↓ 20 callersMethodCall
(ctx context.Context, operation func() (interface{}, error))
challenge-20/solution-template.go:55
↓ 20 callersMethodPut
(key string, value interface{})
challenge-28/solution-template.go:48
↓ 20 callersMethodPut
(key string, value interface{})
challenge-28/submissions/nzamulov/solution-template.go:10
↓ 20 callersFunctionsetupTest
()
packages/cobra/challenge-4-advanced-features/solution-template_test.go:30
↓ 19 callersMethodGet
(key string)
challenge-28/solution-template.go:42
↓ 19 callersMethodRemove
Remove removes an element from the set if it exists
challenge-27/solution-template.go:147
↓ 19 callersFunctionRunMigration
RunMigration runs a specific migration version
packages/gorm/challenge-3-migrations/solution-template.go:48
↓ 18 callersMethodGetByID
(id string)
challenge-9/submissions/Gandook/solution-template.go:26
↓ 18 callersFunctiontokenErrorResponse
tokenErrorResponse writes an OAuth2-style JSON error body and maps the supplied error sentinel to an appropriate HTTP status code per RFC 6749 §5.2.
challenge-15/submissions/PopovMarko/solution-template.go:423
↓ 18 callersFunctionwriteError
(w http.ResponseWriter, statusCode int, message string)
challenge-9/submissions/imankhodadi/solution-template.go:228
↓ 16 callersMethodCreate
(book *Book)
challenge-9/submissions/Gandook/solution-template.go:27
↓ 16 callersMethodGetState
()
challenge-20/solution-template.go:56
↓ 16 callersFunctionexecuteCommand
(root *cobra.Command, args ...string)
packages/cobra/challenge-3-subcommands-persistence/solution-template_test.go:30
↓ 15 callersFunctionConnectDB
ConnectDB establishes a connection to the SQLite database and auto-migrates models
packages/gorm/challenge-5-generics/solution-template.go:46
↓ 15 callersMethodCreateBook
(book *Book)
challenge-9/submissions/Gandook/solution-template.go:148
↓ 15 callersMethodDelete
(id string)
challenge-9/submissions/Gandook/solution-template.go:29
↓ 15 callersMethodDeleteBook
(id string)
challenge-9/submissions/Gandook/solution-template.go:150
↓ 15 callersMethodGetAll
()
challenge-9/submissions/Gandook/solution-template.go:25
↓ 15 callersMethodGetAllBooks
()
challenge-9/submissions/Gandook/solution-template.go:146
↓ 15 callersMethodGetProduct
(ctx context.Context, productID int64)
challenge-14/submissions/kuzminprog/solution-template.go:56
↓ 15 callersFunctionNewLRUCache
NewLRUCache creates a new LRU cache with the specified capacity
challenge-28/solution-template.go:37
↓ 15 callersMethodSearchBooksByAuthor
(author string)
challenge-9/submissions/Gandook/solution-template.go:151
↓ 15 callersMethodSearchBooksByTitle
(title string)
challenge-9/submissions/Gandook/solution-template.go:152
↓ 15 callersMethodSearchByAuthor
(author string)
challenge-9/submissions/Gandook/solution-template.go:30
↓ 15 callersMethodSearchByTitle
(title string)
challenge-9/submissions/Gandook/solution-template.go:31
↓ 15 callersMethodUpdate
(id string, book *Book)
challenge-9/submissions/Gandook/solution-template.go:28
↓ 15 callersMethodUpdateBook
(id string, book *Book)
challenge-9/submissions/Gandook/solution-template.go:149
↓ 15 callersMethodValidateUser
(ctx context.Context, userID int64)
challenge-14/submissions/kuzminprog/solution-template.go:51
↓ 15 callersFunctioncleanup
Helper function to clean up database
packages/gorm/challenge-5-generics/solution-template_test.go:390
↓ 15 callersFunctionhandleError
(c *gin.Context, status int, message string)
packages/gin/challenge-2-middleware/submissions/4mzy/solution.go:92
↓ 15 callersFunctionsetupRouter
()
packages/gin/challenge-2-middleware/solution-template_test.go:16
↓ 14 callersMethodAllow
()
challenge-29/solution-template.go:57
↓ 14 callersMethodCheckInventory
(ctx context.Context, productID int64, quantity int32)
challenge-14/submissions/kuzminprog/solution-template.go:57
↓ 14 callersFunctionConcurrentBFSQueries
ConcurrentBFSQueries concurrently processes BFS queries on the provided graph. - graph: adjacency list, e.g., graph[u] = []int{v1, v2, ...} - queries:
challenge-4/solution-template.go:10
↓ 14 callersMethodConnect
Connect adds a new client to the chat server
challenge-8/solution-template.go:41
↓ 14 callersFunctionNewCircuitBreaker
NewCircuitBreaker creates a new circuit breaker with the given configuration
challenge-20/solution-template.go:78
↓ 14 callersMethodReset
()
challenge-29/submissions/nzamulov/solution-template.go:19
↓ 14 callersFunctionSaveInventory
SaveInventory saves inventory data to JSON file
packages/cobra/challenge-3-subcommands-persistence/submissions/ashwinipatankar/solution.go:555
↓ 14 callersFunctionerrResponse
(c *gin.Context, status int, msg string)
packages/gin/challenge-2-middleware/submissions/odelbos/solution.go:364
↓ 14 callersFunctionerrResponse
(c fiber.Ctx, status int, err string)
packages/fiber/challenge-2-middleware/submissions/odelbos/solution.go:358
↓ 14 callersFunctionexecuteCommand
Helper function to execute commands and capture output
packages/cobra/challenge-2-flags-args/solution-template_test.go:40
↓ 14 callersFunctionsetupTest
()
packages/cobra/challenge-3-subcommands-persistence/solution-template_test.go:20
↓ 13 callersMethodAddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/solution-template.go:17
↓ 13 callersFunctionNewTokenBucketLimiter
NewTokenBucketLimiter creates a new token bucket rate limiter
challenge-29/solution-template.go:43
↓ 13 callersMethodSize
()
challenge-28/solution-template.go:62
↓ 13 callersFunctionexecuteCommand
(root *cobra.Command, args ...string)
packages/cobra/challenge-4-advanced-features/solution-template_test.go:49
↓ 13 callersFunctionrespondWithError
(w http.ResponseWriter, statusCode int, message string)
challenge-9/submissions/Kosench/solution-template.go:531
↓ 13 callersFunctionresponseFailure
(c *gin.Context, err string)
packages/gin/challenge-2-middleware/submissions/shansing/solution.go:51
↓ 13 callersFunctionsendJSONResponse
Helper =======================================================================
packages/gin/challenge-2-middleware/submissions/PolinaSvet/solution.go:164
↓ 13 callersFunctionsetupRouter
()
packages/gin/challenge-1-basic-routing/solution-template_test.go:14
↓ 13 callersFunctionsetupTestRouter
()
packages/gin/challenge-4-authentication/solution-template_test.go:19
↓ 13 callersFunctionwriteError
Helper functions writeError writes RespontseWriter with http status that determined on custom error and error itself
challenge-9/submissions/PopovMarko/solution-template.go:552
↓ 12 callersFunctionConnectDB
ConnectDB establishes a connection to the SQLite database
packages/gorm/challenge-1-crud-operations/solution-template.go:20
↓ 12 callersMethodGetChallenges
GetChallenges returns all challenges
web-ui/internal/services/challenge.go:183
↓ 12 callersMethodTransferMoney
TransferMoney performs atomic money transfer between accounts using transactions
packages/mongodb/challenge-5-transactions-advanced/solution-template.go:80
↓ 12 callersFunctionerrorResponse
errorResponse writes a standardized failure response with the given message, error detail, and HTTP status code.
packages/gin/challenge-1-basic-routing/submissions/PopovMarko/solution.go:248
↓ 12 callersFunctionsendErrorResponse
(c *gin.Context, status int, message string)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:307
↓ 12 callersFunctionsetupTestServer
()
challenge-9/solution-template_test.go:12
↓ 12 callersFunctionwriteErrorToken
(w http.ResponseWriter, statusCode int, message, redirectURI string)
challenge-15/submissions/PolinaSvet/solution-template.go:345
↓ 11 callersFunctionGenerateRandomString
GenerateRandomString generates a random string of the specified length
challenge-15/solution-template.go:140
↓ 11 callersFunctionGetNestedValue
GetNestedValue retrieves value from nested configuration key
packages/cobra/challenge-4-advanced-features/solution-template.go:285
↓ 11 callersFunctionResponseFailure
(err string, code int)
packages/gin/challenge-1-basic-routing/submissions/shansing/solution.go:40
↓ 11 callersFunctiongenerateTokens
TODO: Implement JWT token generation
packages/gin/challenge-4-authentication/solution-template.go:119
↓ 11 callersFunctionmin
(a, b int)
challenge-22/submissions/micos7/solution-template.go:55
↓ 11 callersFunctionsetupTestApp
()
packages/fiber/challenge-2-middleware/solution-template_test.go:14
↓ 11 callersFunctionwriteError
(w http.ResponseWriter, msg string, status int)
challenge-9/submissions/Cpoing/solution-template.go:216
↓ 10 callersMethodDisconnect
Disconnect removes a client from the chat server
challenge-8/solution-template.go:48
↓ 10 callersMethodGetChallenge
(packageID, challengeID string)
web-ui/internal/services/package.go:471
↓ 10 callersFunctionLoadInventory
LoadInventory loads inventory data from JSON file
packages/cobra/challenge-3-subcommands-persistence/submissions/ashwinipatankar/solution.go:528
↓ 10 callersFunctionNewContextManager
NewContextManager creates a new context manager
challenge-30/solution-template.go:34
next →1–100 of 12,886, ranked by callers