MCPcopy Create free account

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

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

MethodGetState
GetState returns the current state of the circuit breaker
challenge-20/submissions/nzamulov/solution-template.go:178
MethodGetStats
()
challenge-29/submissions/imankhodadi/solution-template.go:749
MethodGetStringValue
(ctx context.Context, key interface{})
challenge-30/submissions/imankhodadi/solution-template.go:56
FunctionGetTemplateFuncs
GetTemplateFuncs returns the template functions used across the application
web-ui/internal/utils/templates.go:98
FunctionGetTopActiveUsers
(ctx context.Context, db *gorm.DB, limit int)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:140
MethodGetTopSellingProducts
GetTopSellingProducts retrieves top-selling products
packages/mongodb/challenge-3-aggregation-pipeline/submissions/RezaSi/solution.go:112
FunctionGetTopUsersByPostCount
(db *gorm.DB, limit int)
packages/gorm/challenge-4-advanced-queries/submissions/odelbos/solution.go:60
FunctionGetTopUsersByPostCount
GetTopUsersByPostCount retrieves users with the most posts
packages/gorm/challenge-4-advanced-queries/submissions/aswinsreeraj/solution.go:59
MethodGetUser
(ctx context.Context, userID string)
packages/mongodb/challenge-1-connection-crud/submissions/maket12/solution.go:89
MethodGetUser
GetUser retrieves a user by ID from the database
packages/mongodb/challenge-1-connection-crud/submissions/Onkar-25/solution.go:112
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/solution-template.go:49
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/odelbos/solution-template.go:49
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/odelbos/solution-template.go:430
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/Kosench/solution-template.go:51
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/Kosench/solution-template.go:476
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/PopovMarko/solution-template.go:51
MethodGetUser
GetUser returns User or error not found
challenge-14/submissions/PopovMarko/solution-template.go:463
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/shivamarora1/solution-template.go:50
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/shivamarora1/solution-template.go:429
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/czysiaczek/solution-template.go:50
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/czysiaczek/solution-template.go:405
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/mvsouza/solution-template.go:52
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/mvsouza/solution-template.go:467
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/mick4711/solution-template.go:49
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/mick4711/solution-template.go:427
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/PolinaSvet/solution-template.go:49
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/PolinaSvet/solution-template.go:446
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/y1hao/solution-template.go:50
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/y1hao/solution-template.go:427
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/longbui98/solution-template.go:50
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/longbui98/solution-template.go:409
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/ashwinipatankar/solution-template.go:50
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/ashwinipatankar/solution-template.go:437
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/nzamulov/solution-template.go:53
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/nzamulov/solution-template.go:400
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/Cpoing/solution-template.go:50
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/Cpoing/solution-template.go:434
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/JackDalberg/solution-template.go:50
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/JackDalberg/solution-template.go:429
MethodGetUser
(ctx context.Context, userID int64)
challenge-14/submissions/kuzminprog/solution-template.go:418
FunctionGetUserByID
(ctx context.Context, db *gorm.DB, id uint)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:62
FunctionGetUserByID
(db *gorm.DB, id uint)
packages/gorm/challenge-1-crud-operations/submissions/odelbos/solution.go:36
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/orsenthil/solution.go:43
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/mrYamusa/solution.go:50
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/Relief-chat/solution.go:41
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/22-7-co/solution.go:39
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/grozdovk/solution.go:45
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/Kinsue/solution.go:42
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/shansing/solution.go:47
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/RezaSi/solution.go:42
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/Onkar-25/solution.go:54
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/zylbeyondlimits/solution.go:48
FunctionGetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/aswinsreeraj/solution.go:39
MethodGetUserByID
(id int)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:236
FunctionGetUserEngagementStats
(db *gorm.DB, userID uint)
packages/gorm/challenge-4-advanced-queries/submissions/odelbos/solution.go:97
FunctionGetUserEngagementStats
GetUserEngagementStats calculates engagement statistics for a user
packages/gorm/challenge-4-advanced-queries/submissions/aswinsreeraj/solution.go:86
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/solution-template.go:122
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/odelbos/solution-template.go:132
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/Kosench/solution-template.go:128
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/PopovMarko/solution-template.go:128
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/shivamarora1/solution-template.go:133
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/czysiaczek/solution-template.go:138
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/mick4711/solution-template.go:133
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/PolinaSvet/solution-template.go:138
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/y1hao/solution-template.go:130
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/longbui98/solution-template.go:134
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/ashwinipatankar/solution-template.go:135
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/Cpoing/solution-template.go:136
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/JackDalberg/solution-template.go:133
MethodGetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/kuzminprog/solution-template.go:127
FunctionGetUserRecommendations
(db *gorm.DB, userID uint, limit int)
packages/gorm/challenge-4-advanced-queries/submissions/odelbos/solution.go:199
FunctionGetUserRecommendations
GetUserRecommendations retrieves user recommendations based on similar interests
packages/gorm/challenge-4-advanced-queries/submissions/aswinsreeraj/solution.go:164
FunctionGetUserWithPosts
(db *gorm.DB, userID uint)
packages/gorm/challenge-2-associations/submissions/odelbos/solution.go:54
FunctionGetUserWithPosts
(db *gorm.DB, userID uint)
packages/gorm/challenge-2-associations/submissions/imankhodadi/solution.go:50
FunctionGetUserWithPosts
GetUserWithPosts retrieves a user with all their posts preloaded
packages/gorm/challenge-2-associations/submissions/grozdovk/solution.go:66
FunctionGetUserWithPosts
GetUserWithPosts retrieves a user with all their posts preloaded
packages/gorm/challenge-2-associations/submissions/Onkar-25/solution.go:65
FunctionGetUserWithPosts
GetUserWithPosts retrieves a user with all their posts preloaded
packages/gorm/challenge-2-associations/submissions/aswinsreeraj/solution.go:58
FunctionGetUserWithPostsAndCompany
(ctx context.Context, db *gorm.DB, userID uint)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:120
FunctionGetUsersWithCompany
(ctx context.Context, db *gorm.DB)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:103
FunctionGetUsersWithPosts
(ctx context.Context, db *gorm.DB, limit int)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:111
MethodGetValue
GetValue retrieves a value from the context
challenge-30/solution-template.go:60
MethodGetValue
Get a value from context
challenge-30/submissions/jrbarbati/solution-template.go:21
MethodGetValue
GetValue retrieves a value from the context
challenge-30/submissions/jrbarbati/solution-template.go:54
MethodGetValue
Get a value from context
challenge-30/submissions/odelbos/solution-template.go:21
MethodGetValue
GetValue retrieves a value from the context
challenge-30/submissions/odelbos/solution-template.go:54
MethodGetValue
Get a value from context
challenge-30/submissions/lyb88999/solution-template.go:21
MethodGetValue
GetValue retrieves a value from the context
challenge-30/submissions/lyb88999/solution-template.go:63
MethodGetValue
Get a value from context
challenge-30/submissions/kiramux/solution-template.go:21
MethodGetValue
GetValue retrieves a value from the context
challenge-30/submissions/kiramux/solution-template.go:63
MethodGetValue
Get a value from context
challenge-30/submissions/PopovMarko/solution-template.go:21
MethodGetValue
GetValue retrieves a value from context. NOTE: It cannot distinguish between a missing key and a stored nil value. Callers should avoid storing nil in
challenge-30/submissions/PopovMarko/solution-template.go:56
MethodGetValue
Get a value from context
challenge-30/submissions/Hikitak/solution-template.go:21
MethodGetValue
GetValue retrieves a value from the context
challenge-30/submissions/Hikitak/solution-template.go:59
MethodGetValue
(ctx context.Context, key interface{})
challenge-30/submissions/imankhodadi/solution-template.go:16
MethodGetValue
be careful, cannot distinguish between "key not found" and "value is nil" whether don't store nil as key or assume the key exists with nil value
challenge-30/submissions/imankhodadi/solution-template.go:48
MethodGetValue
Get a value from context
challenge-30/submissions/MYK12397/solution-template.go:21
MethodGetValue
GetValue retrieves a value from the context
challenge-30/submissions/MYK12397/solution-template.go:63
MethodGetValue
Get a value from context
challenge-30/submissions/amrshaban2005/solution-template.go:21
MethodGetValue
GetValue retrieves a value from the context
challenge-30/submissions/amrshaban2005/solution-template.go:57
MethodGetValue
Get a value from context
challenge-30/submissions/YounesBouchbouk/solution-template.go:21
← previousnext →7,201–7,300 of 12,886, ranked by callers