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
↓ 505 callers
Method
Run
Run starts the server's main loop
challenge-8/submissions/PolinaSvet/solution-template.go:182
↓ 493 callers
Method
Get
(key string)
challenge-28/submissions/nzamulov/solution-template.go:9
↓ 491 callers
Method
Contains
Contains returns true if the set contains the given element
challenge-27/solution-template.go:152
↓ 390 callers
Method
Error
()
challenge-7/solution-template.go:30
↓ 361 callers
Method
Error
()
packages/gin/challenge-2-middleware/submissions/sweet-boby/solution.go:275
↓ 311 callers
Method
Error
Error returns a string representation of the PipelineError
challenge-12/solution-template.go:74
↓ 296 callers
Method
Add
Add adds an element to the set if it's not already present
challenge-27/solution-template.go:142
↓ 295 callers
Method
Area
()
challenge-10/submissions/ahmedpyarali2/solution-template.go:12
↓ 294 callers
Method
Close
Close closes the gRPC connections
challenge-14/submissions/Kosench/solution-template.go:276
↓ 208 callers
Method
String
()
challenge-10/submissions/abhishek15032000/solution-template.go:106
↓ 153 callers
Method
WriteHeader
(code int)
challenge-9/submissions/PolinaSvet/solution-template.go:362
↓ 69 callers
Method
Wait
(ctx context.Context)
challenge-29/submissions/nzamulov/solution-template.go:15
↓ 65 callers
Method
Create
(book *User)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:46
↓ 56 callers
Method
Size
()
challenge-28/submissions/nzamulov/solution-template.go:13
↓ 55 callers
Method
Len
()
challenge-10/solution-template_test.go:441
↓ 54 callers
Method
Remove
Remove removes a key from the cache
packages/gin/challenge-2-middleware/submissions/father-frog/solution.go:113
↓ 50 callers
Method
Print
()
challenge-27/submissions/PolinaSvet/solution-template.go:156
↓ 46 callers
Method
Write
(ctx context.Context, data []byte)
challenge-12/submissions/Cpoing/solution-template.go:31
↓ 35 callers
Method
Delete
(id int)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:48
↓ 34 callers
Method
Limit
()
challenge-29/submissions/nzamulov/solution-template.go:17
↓ 34 callers
Function
errResponse
(c *gin.Context, status int, msg string)
packages/gin/challenge-4-authentication/submissions/odelbos/solution.go:683
↓ 30 callers
Method
Allow
()
challenge-29/submissions/nzamulov/solution-template.go:13
↓ 26 callers
Method
Delete
(key string)
challenge-28/submissions/nzamulov/solution-template.go:11
↓ 26 callers
Method
Read
(ctx context.Context)
challenge-12/submissions/Cpoing/solution-template.go:16
↓ 26 callers
Function
errResponse
(c fiber.Ctx, status int, msg string)
packages/fiber/challenge-4-authentication/submissions/odelbos/solution.go:407
↓ 24 callers
Function
fail
Create a helper function for preparing failure results.
challenge-13/submissions/DavidCao22/solution-template.go:272
↓ 24 callers
Method
tokenError
(w http.ResponseWriter, errorCode, description string, statusCode int)
challenge-15/submissions/Kosench/solution-template.go:617
↓ 22 callers
Function
errorResponse
(c *gin.Context, msg, err string, status int)
packages/gin/challenge-2-middleware/submissions/PopovMarko/solution.go:468
↓ 22 callers
Function
max
(a, b int)
packages/gin/challenge-2-middleware/submissions/Onkar-25/solution.go:284
↓ 21 callers
Method
GetBookByID
(id string)
challenge-9/submissions/Gandook/solution-template.go:147
↓ 20 callers
Method
Call
(ctx context.Context, operation func() (interface{}, error))
challenge-20/solution-template.go:55
↓ 20 callers
Method
Put
(key string, value interface{})
challenge-28/solution-template.go:48
↓ 20 callers
Method
Put
(key string, value interface{})
challenge-28/submissions/nzamulov/solution-template.go:10
↓ 20 callers
Function
setupTest
()
packages/cobra/challenge-4-advanced-features/solution-template_test.go:30
↓ 19 callers
Method
Get
(key string)
challenge-28/solution-template.go:42
↓ 19 callers
Method
Remove
Remove removes an element from the set if it exists
challenge-27/solution-template.go:147
↓ 19 callers
Function
RunMigration
RunMigration runs a specific migration version
packages/gorm/challenge-3-migrations/solution-template.go:48
↓ 18 callers
Method
GetByID
(id string)
challenge-9/submissions/Gandook/solution-template.go:26
↓ 18 callers
Function
tokenErrorResponse
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 callers
Function
writeError
(w http.ResponseWriter, statusCode int, message string)
challenge-9/submissions/imankhodadi/solution-template.go:228
↓ 16 callers
Method
Create
(book *Book)
challenge-9/submissions/Gandook/solution-template.go:27
↓ 16 callers
Method
GetState
()
challenge-20/solution-template.go:56
↓ 16 callers
Function
executeCommand
(root *cobra.Command, args ...string)
packages/cobra/challenge-3-subcommands-persistence/solution-template_test.go:30
↓ 15 callers
Function
ConnectDB
ConnectDB establishes a connection to the SQLite database and auto-migrates models
packages/gorm/challenge-5-generics/solution-template.go:46
↓ 15 callers
Method
CreateBook
(book *Book)
challenge-9/submissions/Gandook/solution-template.go:148
↓ 15 callers
Method
Delete
(id string)
challenge-9/submissions/Gandook/solution-template.go:29
↓ 15 callers
Method
DeleteBook
(id string)
challenge-9/submissions/Gandook/solution-template.go:150
↓ 15 callers
Method
GetAll
()
challenge-9/submissions/Gandook/solution-template.go:25
↓ 15 callers
Method
GetAllBooks
()
challenge-9/submissions/Gandook/solution-template.go:146
↓ 15 callers
Method
GetProduct
(ctx context.Context, productID int64)
challenge-14/submissions/kuzminprog/solution-template.go:56
↓ 15 callers
Function
NewLRUCache
NewLRUCache creates a new LRU cache with the specified capacity
challenge-28/solution-template.go:37
↓ 15 callers
Method
SearchBooksByAuthor
(author string)
challenge-9/submissions/Gandook/solution-template.go:151
↓ 15 callers
Method
SearchBooksByTitle
(title string)
challenge-9/submissions/Gandook/solution-template.go:152
↓ 15 callers
Method
SearchByAuthor
(author string)
challenge-9/submissions/Gandook/solution-template.go:30
↓ 15 callers
Method
SearchByTitle
(title string)
challenge-9/submissions/Gandook/solution-template.go:31
↓ 15 callers
Method
Update
(id string, book *Book)
challenge-9/submissions/Gandook/solution-template.go:28
↓ 15 callers
Method
UpdateBook
(id string, book *Book)
challenge-9/submissions/Gandook/solution-template.go:149
↓ 15 callers
Method
ValidateUser
(ctx context.Context, userID int64)
challenge-14/submissions/kuzminprog/solution-template.go:51
↓ 15 callers
Function
cleanup
Helper function to clean up database
packages/gorm/challenge-5-generics/solution-template_test.go:390
↓ 15 callers
Function
handleError
(c *gin.Context, status int, message string)
packages/gin/challenge-2-middleware/submissions/4mzy/solution.go:92
↓ 15 callers
Function
setupRouter
()
packages/gin/challenge-2-middleware/solution-template_test.go:16
↓ 14 callers
Method
Allow
()
challenge-29/solution-template.go:57
↓ 14 callers
Method
CheckInventory
(ctx context.Context, productID int64, quantity int32)
challenge-14/submissions/kuzminprog/solution-template.go:57
↓ 14 callers
Function
ConcurrentBFSQueries
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 callers
Method
Connect
Connect adds a new client to the chat server
challenge-8/solution-template.go:41
↓ 14 callers
Function
NewCircuitBreaker
NewCircuitBreaker creates a new circuit breaker with the given configuration
challenge-20/solution-template.go:78
↓ 14 callers
Method
Reset
()
challenge-29/submissions/nzamulov/solution-template.go:19
↓ 14 callers
Function
SaveInventory
SaveInventory saves inventory data to JSON file
packages/cobra/challenge-3-subcommands-persistence/submissions/ashwinipatankar/solution.go:555
↓ 14 callers
Function
errResponse
(c *gin.Context, status int, msg string)
packages/gin/challenge-2-middleware/submissions/odelbos/solution.go:364
↓ 14 callers
Function
errResponse
(c fiber.Ctx, status int, err string)
packages/fiber/challenge-2-middleware/submissions/odelbos/solution.go:358
↓ 14 callers
Function
executeCommand
Helper function to execute commands and capture output
packages/cobra/challenge-2-flags-args/solution-template_test.go:40
↓ 14 callers
Function
setupTest
()
packages/cobra/challenge-3-subcommands-persistence/solution-template_test.go:20
↓ 13 callers
Method
AddEmployee
AddEmployee adds a new employee to the manager's list.
challenge-3/solution-template.go:17
↓ 13 callers
Function
NewTokenBucketLimiter
NewTokenBucketLimiter creates a new token bucket rate limiter
challenge-29/solution-template.go:43
↓ 13 callers
Method
Size
()
challenge-28/solution-template.go:62
↓ 13 callers
Function
executeCommand
(root *cobra.Command, args ...string)
packages/cobra/challenge-4-advanced-features/solution-template_test.go:49
↓ 13 callers
Function
respondWithError
(w http.ResponseWriter, statusCode int, message string)
challenge-9/submissions/Kosench/solution-template.go:531
↓ 13 callers
Function
responseFailure
(c *gin.Context, err string)
packages/gin/challenge-2-middleware/submissions/shansing/solution.go:51
↓ 13 callers
Function
sendJSONResponse
Helper =======================================================================
packages/gin/challenge-2-middleware/submissions/PolinaSvet/solution.go:164
↓ 13 callers
Function
setupRouter
()
packages/gin/challenge-1-basic-routing/solution-template_test.go:14
↓ 13 callers
Function
setupTestRouter
()
packages/gin/challenge-4-authentication/solution-template_test.go:19
↓ 13 callers
Function
writeError
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 callers
Function
ConnectDB
ConnectDB establishes a connection to the SQLite database
packages/gorm/challenge-1-crud-operations/solution-template.go:20
↓ 12 callers
Method
GetChallenges
GetChallenges returns all challenges
web-ui/internal/services/challenge.go:183
↓ 12 callers
Method
TransferMoney
TransferMoney performs atomic money transfer between accounts using transactions
packages/mongodb/challenge-5-transactions-advanced/solution-template.go:80
↓ 12 callers
Function
errorResponse
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 callers
Function
sendErrorResponse
(c *gin.Context, status int, message string)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:307
↓ 12 callers
Function
setupTestServer
()
challenge-9/solution-template_test.go:12
↓ 12 callers
Function
writeErrorToken
(w http.ResponseWriter, statusCode int, message, redirectURI string)
challenge-15/submissions/PolinaSvet/solution-template.go:345
↓ 11 callers
Function
GenerateRandomString
GenerateRandomString generates a random string of the specified length
challenge-15/solution-template.go:140
↓ 11 callers
Function
GetNestedValue
GetNestedValue retrieves value from nested configuration key
packages/cobra/challenge-4-advanced-features/solution-template.go:285
↓ 11 callers
Function
ResponseFailure
(err string, code int)
packages/gin/challenge-1-basic-routing/submissions/shansing/solution.go:40
↓ 11 callers
Function
generateTokens
TODO: Implement JWT token generation
packages/gin/challenge-4-authentication/solution-template.go:119
↓ 11 callers
Function
min
(a, b int)
challenge-22/submissions/micos7/solution-template.go:55
↓ 11 callers
Function
setupTestApp
()
packages/fiber/challenge-2-middleware/solution-template_test.go:14
↓ 11 callers
Function
writeError
(w http.ResponseWriter, msg string, status int)
challenge-9/submissions/Cpoing/solution-template.go:216
↓ 10 callers
Method
Disconnect
Disconnect removes a client from the chat server
challenge-8/solution-template.go:48
↓ 10 callers
Method
GetChallenge
(packageID, challengeID string)
web-ui/internal/services/package.go:471
↓ 10 callers
Function
LoadInventory
LoadInventory loads inventory data from JSON file
packages/cobra/challenge-3-subcommands-persistence/submissions/ashwinipatankar/solution.go:528
↓ 10 callers
Function
NewContextManager
NewContextManager creates a new context manager
challenge-30/solution-template.go:34
next →
1–100 of 12,886, ranked by callers