Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThreeDotsLabs/go-web-app-antipatterns
/ functions
Functions
549 in github.com/ThreeDotsLabs/go-web-app-antipatterns
⨍
Functions
549
◇
Types & classes
216
Method
EQ
(x null.Time)
01-coupling/04-loosely-coupled-app-layer/models/users.go:102
Method
EQ
(x int64)
01-coupling/03-loosely-coupled-generated/models/emails.go:63
Method
EQ
(x string)
01-coupling/03-loosely-coupled-generated/models/emails.go:86
Method
EQ
(x bool)
01-coupling/03-loosely-coupled-generated/models/emails.go:109
Method
EQ
(x null.String)
01-coupling/03-loosely-coupled-generated/models/users.go:79
Method
EQ
(x null.Time)
01-coupling/03-loosely-coupled-generated/models/users.go:102
Function
EmailExists
EmailExists checks if the Email row exists.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:1162
Function
EmailExists
EmailExists checks if the Email row exists.
01-coupling/03-loosely-coupled-generated/models/emails.go:1162
Method
Emails
Emails retrieves all the email's Emails with an executor.
01-coupling/04-loosely-coupled-app-layer/models/users.go:444
Method
Emails
Emails retrieves all the email's Emails with an executor.
01-coupling/03-loosely-coupled-generated/models/users.go:444
Method
Exists
Exists checks if the row exists in the table.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:415
Method
Exists
Exists checks if the row exists in the table.
01-coupling/04-loosely-coupled-app-layer/models/users.go:428
Method
Exists
Exists checks if the row exists in the table.
01-coupling/03-loosely-coupled-generated/models/emails.go:415
Method
Exists
Exists checks if the row exists in the table.
01-coupling/03-loosely-coupled-generated/models/users.go:428
Function
FromString
(s string)
02-enums/04-structs/role/role.go:21
Method
GT
(x int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:67
Method
GT
(x string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:90
Method
GT
(x bool)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:113
Method
GT
(x null.String)
01-coupling/04-loosely-coupled-app-layer/models/users.go:93
Method
GT
(x null.Time)
01-coupling/04-loosely-coupled-app-layer/models/users.go:116
Method
GT
(x int64)
01-coupling/03-loosely-coupled-generated/models/emails.go:67
Method
GT
(x string)
01-coupling/03-loosely-coupled-generated/models/emails.go:90
Method
GT
(x bool)
01-coupling/03-loosely-coupled-generated/models/emails.go:113
Method
GT
(x null.String)
01-coupling/03-loosely-coupled-generated/models/users.go:93
Method
GT
(x null.Time)
01-coupling/03-loosely-coupled-generated/models/users.go:116
Method
GTE
(x int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:68
Method
GTE
(x string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:91
Method
GTE
(x bool)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:114
Method
GTE
(x null.String)
01-coupling/04-loosely-coupled-app-layer/models/users.go:96
Method
GTE
(x null.Time)
01-coupling/04-loosely-coupled-app-layer/models/users.go:119
Method
GTE
(x int64)
01-coupling/03-loosely-coupled-generated/models/emails.go:68
Method
GTE
(x string)
01-coupling/03-loosely-coupled-generated/models/emails.go:91
Method
GTE
(x bool)
01-coupling/03-loosely-coupled-generated/models/emails.go:114
Method
GTE
(x null.String)
01-coupling/03-loosely-coupled-generated/models/users.go:96
Method
GTE
(x null.Time)
01-coupling/03-loosely-coupled-generated/models/users.go:119
Method
GetPoints
(ctx context.Context, tx *sql.Tx, userID int)
04-transactions/02-tx-in-logic/repository.go:31
Method
GetPoints
(ctx context.Context, tx *sql.Tx, userID int)
04-transactions/02-tx-in-logic/app.go:22
Method
GetPoints
(ctx context.Context, userID int)
04-transactions/01-no-tx/repository.go:35
Method
GetUser
(w http.ResponseWriter, r *http.Request)
01-coupling/01-tightly-coupled/internal/http.go:43
Method
GetUser
(w http.ResponseWriter, r *http.Request, rawUserID UserID)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:42
Method
GetUser
Get a single user (GET /users/{userID})
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:27
Method
GetUser
GetUser operation middleware
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:98
Method
GetUser
(id int)
01-coupling/tests/client.go:72
Method
GetUser
(w http.ResponseWriter, r *http.Request)
01-coupling/02-loosely-coupled/internal/http.go:70
Method
GetUser
(w http.ResponseWriter, r *http.Request, rawUserID UserID)
01-coupling/03-loosely-coupled-generated/internal/http.go:45
Method
GetUser
GetUser operation middleware
01-coupling/03-loosely-coupled-generated/internal/http_server.go:98
Method
GetUsers
(w http.ResponseWriter, r *http.Request)
01-coupling/01-tightly-coupled/internal/http.go:23
Method
GetUsers
(w http.ResponseWriter, r *http.Request)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:21
Method
GetUsers
Get all users (GET /users)
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:18
Method
GetUsers
GetUsers operation middleware
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:42
Method
GetUsers
(w http.ResponseWriter, r *http.Request)
01-coupling/02-loosely-coupled/internal/http.go:49
Method
GetUsers
(w http.ResponseWriter, r *http.Request)
01-coupling/03-loosely-coupled-generated/internal/http.go:24
Method
GetUsers
GetUsers operation middleware
01-coupling/03-loosely-coupled-generated/internal/http_server.go:42
Method
Handle
(ctx context.Context, cmd UsePointsAsDiscount)
05-distributed-transactions/01-distributed-monolith/users-svc/app.go:36
Method
Handle
(ctx context.Context, cmd AddDiscount)
05-distributed-transactions/01-distributed-monolith/orders-svc/app.go:29
Method
Handle
(ctx context.Context, cmd UsePointsAsDiscount)
05-distributed-transactions/03-outbox/users-svc/app.go:28
Method
Handle
(ctx context.Context, cmd AddDiscount)
05-distributed-transactions/03-outbox/orders-svc/app.go:29
Method
Handle
(ctx context.Context, event *PointsUsedForDiscount)
05-distributed-transactions/03-outbox/orders-svc/events.go:22
Method
Handle
(ctx context.Context, cmd UsePointsAsDiscount)
05-distributed-transactions/02-eventual-consistency/users-svc/app.go:41
Method
Handle
(ctx context.Context, cmd AddDiscount)
05-distributed-transactions/02-eventual-consistency/orders-svc/app.go:29
Method
Handle
(ctx context.Context, event *PointsUsedForDiscount)
05-distributed-transactions/02-eventual-consistency/orders-svc/events.go:22
Method
Handle
(ctx context.Context, cmd UsePointsAsDiscount)
04-transactions/05-tx-provider/app.go:42
Method
Handle
(ctx context.Context, cmd UsePointsAsDiscount)
04-transactions/02-tx-in-logic/app.go:42
Method
Handle
(ctx context.Context, cmd UsePointsAsDiscount)
04-transactions/01-no-tx/app.go:38
Method
Handle
(ctx context.Context, cmd UsePointsAsDiscount)
04-transactions/03-tx-in-repo/app.go:30
Method
Handle
(ctx context.Context, cmd UsePointsAsDiscount)
04-transactions/04-update-func-closure/app.go:28
Method
Handle
(ctx context.Context, cmd C)
03-cohesion/03-generics/decorators.go:16
Method
Handle
(ctx context.Context, cmd C)
03-cohesion/03-generics/decorators.go:34
Method
Handle
(ctx context.Context, cmd C)
03-cohesion/03-generics/decorators.go:54
Method
Handle
(ctx context.Context, cmd Subscribe)
03-cohesion/02-decorators/decorators.go:14
Method
Handle
(ctx context.Context, cmd Subscribe)
03-cohesion/02-decorators/decorators.go:32
Method
Handle
(ctx context.Context, cmd Subscribe)
03-cohesion/02-decorators/decorators.go:52
Method
Handle
(ctx context.Context, cmd Subscribe)
03-cohesion/02-decorators/subscribe.go:52
Function
Handler
Handler creates http.Handler with routing matching OpenAPI spec.
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:150
Function
Handler
Handler creates http.Handler with routing matching OpenAPI spec.
01-coupling/03-loosely-coupled-generated/internal/http_server.go:150
Function
HandlerFromMux
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:161
Function
HandlerFromMux
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
01-coupling/03-loosely-coupled-generated/internal/http_server.go:161
Function
HandlerFromMuxWithBaseURL
(si ServerInterface, r chi.Router, baseURL string)
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:167
Function
HandlerFromMuxWithBaseURL
(si ServerInterface, r chi.Router, baseURL string)
01-coupling/03-loosely-coupled-generated/internal/http_server.go:167
Method
IN
(slice []int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:69
Method
IN
(slice []string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:92
Method
IN
(slice []int64)
01-coupling/03-loosely-coupled-generated/models/emails.go:69
Method
IN
(slice []string)
01-coupling/03-loosely-coupled-generated/models/emails.go:92
Method
Inc
(key string, value int)
03-cohesion/01-low-cohesion/main.go:116
Method
Inc
(key string, value int)
03-cohesion/01-low-cohesion/subscribe.go:10
Method
Inc
(key string, value int)
03-cohesion/03-generics/main.go:103
Method
Inc
(key string, value int)
03-cohesion/03-generics/subscribe.go:12
Method
Inc
(key string, value int)
03-cohesion/02-decorators/main.go:103
Method
IsNotNull
()
01-coupling/04-loosely-coupled-app-layer/models/users.go:86
Method
IsNotNull
()
01-coupling/04-loosely-coupled-app-layer/models/users.go:109
Method
IsNotNull
()
01-coupling/03-loosely-coupled-generated/models/users.go:86
Method
IsNotNull
()
01-coupling/03-loosely-coupled-generated/models/users.go:109
Method
IsNull
()
01-coupling/04-loosely-coupled-app-layer/models/users.go:85
Method
IsNull
()
01-coupling/04-loosely-coupled-app-layer/models/users.go:108
Method
IsNull
()
01-coupling/03-loosely-coupled-generated/models/users.go:85
Method
IsNull
()
01-coupling/03-loosely-coupled-generated/models/users.go:108
Method
LT
(x int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:65
Method
LT
(x string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:88
Method
LT
(x bool)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:111
Method
LT
(x null.String)
01-coupling/04-loosely-coupled-app-layer/models/users.go:87
← previous
next →
301–400 of 549, ranked by callers