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
Method
GetState
GetState returns the current state of the circuit breaker
challenge-20/submissions/nzamulov/solution-template.go:178
Method
GetStats
()
challenge-29/submissions/imankhodadi/solution-template.go:749
Method
GetStringValue
(ctx context.Context, key interface{})
challenge-30/submissions/imankhodadi/solution-template.go:56
Function
GetTemplateFuncs
GetTemplateFuncs returns the template functions used across the application
web-ui/internal/utils/templates.go:98
Function
GetTopActiveUsers
(ctx context.Context, db *gorm.DB, limit int)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:140
Method
GetTopSellingProducts
GetTopSellingProducts retrieves top-selling products
packages/mongodb/challenge-3-aggregation-pipeline/submissions/RezaSi/solution.go:112
Function
GetTopUsersByPostCount
(db *gorm.DB, limit int)
packages/gorm/challenge-4-advanced-queries/submissions/odelbos/solution.go:60
Function
GetTopUsersByPostCount
GetTopUsersByPostCount retrieves users with the most posts
packages/gorm/challenge-4-advanced-queries/submissions/aswinsreeraj/solution.go:59
Method
GetUser
(ctx context.Context, userID string)
packages/mongodb/challenge-1-connection-crud/submissions/maket12/solution.go:89
Method
GetUser
GetUser retrieves a user by ID from the database
packages/mongodb/challenge-1-connection-crud/submissions/Onkar-25/solution.go:112
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/solution-template.go:49
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/odelbos/solution-template.go:49
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/odelbos/solution-template.go:430
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/Kosench/solution-template.go:51
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/Kosench/solution-template.go:476
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/PopovMarko/solution-template.go:51
Method
GetUser
GetUser returns User or error not found
challenge-14/submissions/PopovMarko/solution-template.go:463
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/shivamarora1/solution-template.go:50
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/shivamarora1/solution-template.go:429
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/czysiaczek/solution-template.go:50
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/czysiaczek/solution-template.go:405
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/mvsouza/solution-template.go:52
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/mvsouza/solution-template.go:467
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/mick4711/solution-template.go:49
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/mick4711/solution-template.go:427
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/PolinaSvet/solution-template.go:49
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/PolinaSvet/solution-template.go:446
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/y1hao/solution-template.go:50
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/y1hao/solution-template.go:427
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/longbui98/solution-template.go:50
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/longbui98/solution-template.go:409
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/ashwinipatankar/solution-template.go:50
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/ashwinipatankar/solution-template.go:437
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/nzamulov/solution-template.go:53
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/nzamulov/solution-template.go:400
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/Cpoing/solution-template.go:50
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/Cpoing/solution-template.go:434
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/JackDalberg/solution-template.go:50
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/JackDalberg/solution-template.go:429
Method
GetUser
(ctx context.Context, userID int64)
challenge-14/submissions/kuzminprog/solution-template.go:418
Function
GetUserByID
(ctx context.Context, db *gorm.DB, id uint)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:62
Function
GetUserByID
(db *gorm.DB, id uint)
packages/gorm/challenge-1-crud-operations/submissions/odelbos/solution.go:36
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/orsenthil/solution.go:43
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/mrYamusa/solution.go:50
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/Relief-chat/solution.go:41
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/22-7-co/solution.go:39
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/grozdovk/solution.go:45
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/Kinsue/solution.go:42
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/shansing/solution.go:47
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/RezaSi/solution.go:42
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/Onkar-25/solution.go:54
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/zylbeyondlimits/solution.go:48
Function
GetUserByID
GetUserByID retrieves a user by their ID
packages/gorm/challenge-1-crud-operations/submissions/aswinsreeraj/solution.go:39
Method
GetUserByID
(id int)
packages/gin/challenge-1-basic-routing/submissions/PolinaSvet/solution.go:236
Function
GetUserEngagementStats
(db *gorm.DB, userID uint)
packages/gorm/challenge-4-advanced-queries/submissions/odelbos/solution.go:97
Function
GetUserEngagementStats
GetUserEngagementStats calculates engagement statistics for a user
packages/gorm/challenge-4-advanced-queries/submissions/aswinsreeraj/solution.go:86
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/solution-template.go:122
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/odelbos/solution-template.go:132
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/Kosench/solution-template.go:128
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/PopovMarko/solution-template.go:128
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/shivamarora1/solution-template.go:133
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/czysiaczek/solution-template.go:138
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/mick4711/solution-template.go:133
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/PolinaSvet/solution-template.go:138
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/y1hao/solution-template.go:130
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/longbui98/solution-template.go:134
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/ashwinipatankar/solution-template.go:135
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/Cpoing/solution-template.go:136
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/JackDalberg/solution-template.go:133
Method
GetUserRPC
gRPC method handlers for UserService
challenge-14/submissions/kuzminprog/solution-template.go:127
Function
GetUserRecommendations
(db *gorm.DB, userID uint, limit int)
packages/gorm/challenge-4-advanced-queries/submissions/odelbos/solution.go:199
Function
GetUserRecommendations
GetUserRecommendations retrieves user recommendations based on similar interests
packages/gorm/challenge-4-advanced-queries/submissions/aswinsreeraj/solution.go:164
Function
GetUserWithPosts
(db *gorm.DB, userID uint)
packages/gorm/challenge-2-associations/submissions/odelbos/solution.go:54
Function
GetUserWithPosts
(db *gorm.DB, userID uint)
packages/gorm/challenge-2-associations/submissions/imankhodadi/solution.go:50
Function
GetUserWithPosts
GetUserWithPosts retrieves a user with all their posts preloaded
packages/gorm/challenge-2-associations/submissions/grozdovk/solution.go:66
Function
GetUserWithPosts
GetUserWithPosts retrieves a user with all their posts preloaded
packages/gorm/challenge-2-associations/submissions/Onkar-25/solution.go:65
Function
GetUserWithPosts
GetUserWithPosts retrieves a user with all their posts preloaded
packages/gorm/challenge-2-associations/submissions/aswinsreeraj/solution.go:58
Function
GetUserWithPostsAndCompany
(ctx context.Context, db *gorm.DB, userID uint)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:120
Function
GetUsersWithCompany
(ctx context.Context, db *gorm.DB)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:103
Function
GetUsersWithPosts
(ctx context.Context, db *gorm.DB, limit int)
packages/gorm/challenge-5-generics/submissions/odelbos/solution.go:111
Method
GetValue
GetValue retrieves a value from the context
challenge-30/solution-template.go:60
Method
GetValue
Get a value from context
challenge-30/submissions/jrbarbati/solution-template.go:21
Method
GetValue
GetValue retrieves a value from the context
challenge-30/submissions/jrbarbati/solution-template.go:54
Method
GetValue
Get a value from context
challenge-30/submissions/odelbos/solution-template.go:21
Method
GetValue
GetValue retrieves a value from the context
challenge-30/submissions/odelbos/solution-template.go:54
Method
GetValue
Get a value from context
challenge-30/submissions/lyb88999/solution-template.go:21
Method
GetValue
GetValue retrieves a value from the context
challenge-30/submissions/lyb88999/solution-template.go:63
Method
GetValue
Get a value from context
challenge-30/submissions/kiramux/solution-template.go:21
Method
GetValue
GetValue retrieves a value from the context
challenge-30/submissions/kiramux/solution-template.go:63
Method
GetValue
Get a value from context
challenge-30/submissions/PopovMarko/solution-template.go:21
Method
GetValue
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
Method
GetValue
Get a value from context
challenge-30/submissions/Hikitak/solution-template.go:21
Method
GetValue
GetValue retrieves a value from the context
challenge-30/submissions/Hikitak/solution-template.go:59
Method
GetValue
(ctx context.Context, key interface{})
challenge-30/submissions/imankhodadi/solution-template.go:16
Method
GetValue
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
Method
GetValue
Get a value from context
challenge-30/submissions/MYK12397/solution-template.go:21
Method
GetValue
GetValue retrieves a value from the context
challenge-30/submissions/MYK12397/solution-template.go:63
Method
GetValue
Get a value from context
challenge-30/submissions/amrshaban2005/solution-template.go:21
Method
GetValue
GetValue retrieves a value from the context
challenge-30/submissions/amrshaban2005/solution-template.go:57
Method
GetValue
Get a value from context
challenge-30/submissions/YounesBouchbouk/solution-template.go:21
← previous
next →
7,201–7,300 of 12,886, ranked by callers