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
LT
(x null.Time)
01-coupling/04-loosely-coupled-app-layer/models/users.go:110
Method
LT
(x int64)
01-coupling/03-loosely-coupled-generated/models/emails.go:65
Method
LT
(x string)
01-coupling/03-loosely-coupled-generated/models/emails.go:88
Method
LT
(x bool)
01-coupling/03-loosely-coupled-generated/models/emails.go:111
Method
LT
(x null.String)
01-coupling/03-loosely-coupled-generated/models/users.go:87
Method
LT
(x null.Time)
01-coupling/03-loosely-coupled-generated/models/users.go:110
Method
LTE
(x int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:66
Method
LTE
(x string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:89
Method
LTE
(x bool)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:112
Method
LTE
(x null.String)
01-coupling/04-loosely-coupled-app-layer/models/users.go:90
Method
LTE
(x null.Time)
01-coupling/04-loosely-coupled-app-layer/models/users.go:113
Method
LTE
(x int64)
01-coupling/03-loosely-coupled-generated/models/emails.go:66
Method
LTE
(x string)
01-coupling/03-loosely-coupled-generated/models/emails.go:89
Method
LTE
(x bool)
01-coupling/03-loosely-coupled-generated/models/emails.go:112
Method
LTE
(x null.String)
01-coupling/03-loosely-coupled-generated/models/users.go:90
Method
LTE
(x null.Time)
01-coupling/03-loosely-coupled-generated/models/users.go:113
Method
LoadEmails
LoadEmails allows an eager lookup of values, cached into the loaded structs of the objects. This is for a 1-M or N-M relationship.
01-coupling/04-loosely-coupled-app-layer/models/users.go:466
Method
LoadEmails
LoadEmails allows an eager lookup of values, cached into the loaded structs of the objects. This is for a 1-M or N-M relationship.
01-coupling/03-loosely-coupled-generated/models/users.go:466
Method
LoadUser
LoadUser allows an eager lookup of values, cached into the loaded structs of the objects. This is for an N-1 relationship.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:446
Method
LoadUser
LoadUser allows an eager lookup of values, cached into the loaded structs of the objects. This is for an N-1 relationship.
01-coupling/03-loosely-coupled-generated/models/emails.go:446
Method
NEQ
(x int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:64
Method
NEQ
(x string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:87
Method
NEQ
(x bool)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:110
Method
NEQ
(x null.String)
01-coupling/04-loosely-coupled-app-layer/models/users.go:82
Method
NEQ
(x null.Time)
01-coupling/04-loosely-coupled-app-layer/models/users.go:105
Method
NEQ
(x int64)
01-coupling/03-loosely-coupled-generated/models/emails.go:64
Method
NEQ
(x string)
01-coupling/03-loosely-coupled-generated/models/emails.go:87
Method
NEQ
(x bool)
01-coupling/03-loosely-coupled-generated/models/emails.go:110
Method
NEQ
(x null.String)
01-coupling/03-loosely-coupled-generated/models/users.go:82
Method
NEQ
(x null.Time)
01-coupling/03-loosely-coupled-generated/models/users.go:105
Method
NIN
(slice []int64)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:76
Method
NIN
(slice []string)
01-coupling/04-loosely-coupled-app-layer/models/emails.go:99
Method
NIN
(slice []int64)
01-coupling/03-loosely-coupled-generated/models/emails.go:76
Method
NIN
(slice []string)
01-coupling/03-loosely-coupled-generated/models/emails.go:99
Method
NewStruct
NewStruct creates a new relationship struct
01-coupling/04-loosely-coupled-app-layer/models/emails.go:141
Method
NewStruct
NewStruct creates a new relationship struct
01-coupling/04-loosely-coupled-app-layer/models/users.go:154
Method
NewStruct
NewStruct creates a new relationship struct
01-coupling/03-loosely-coupled-generated/models/emails.go:141
Method
NewStruct
NewStruct creates a new relationship struct
01-coupling/03-loosely-coupled-generated/models/users.go:154
Function
NewUserHandler
(storage UserStorage)
01-coupling/01-tightly-coupled/internal/http.go:17
Function
NewUserHandler
(storage UserStorage)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:15
Function
NewUserHandler
(storage UserStorage)
01-coupling/02-loosely-coupled/internal/http.go:43
Function
NewUserHandler
(storage UserStorage)
01-coupling/03-loosely-coupled-generated/internal/http.go:18
Function
NewUserStorage
(db *gorm.DB)
01-coupling/01-tightly-coupled/internal/db.go:19
Function
NewUserStorage
(db *sql.DB)
01-coupling/04-loosely-coupled-app-layer/internal/db.go:25
Function
NewUserStorage
(db *gorm.DB)
01-coupling/02-loosely-coupled/internal/db.go:46
Function
NewUserStorage
(db *sql.DB)
01-coupling/03-loosely-coupled-generated/internal/db.go:24
Method
One
One returns a single email record from the query.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:359
Method
One
One returns a single email record from the query.
01-coupling/03-loosely-coupled-generated/models/emails.go:359
Method
PatchUser
(w http.ResponseWriter, r *http.Request)
01-coupling/01-tightly-coupled/internal/http.go:108
Method
PatchUser
(w http.ResponseWriter, r *http.Request, rawUserID UserID)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:101
Method
PatchUser
Update user (PATCH /users/{userID})
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:30
Method
PatchUser
PatchUser operation middleware
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:124
Method
PatchUser
(id int, firstName *string, lastName *string, expectedStatusCode int)
01-coupling/tests/client.go:111
Method
PatchUser
(w http.ResponseWriter, r *http.Request)
01-coupling/02-loosely-coupled/internal/http.go:132
Method
PatchUser
(w http.ResponseWriter, r *http.Request, rawUserID UserID)
01-coupling/03-loosely-coupled-generated/internal/http.go:117
Method
PatchUser
PatchUser operation middleware
01-coupling/03-loosely-coupled-generated/internal/http_server.go:124
Method
PostUser
(w http.ResponseWriter, r *http.Request)
01-coupling/01-tightly-coupled/internal/http.go:72
Method
PostUser
(w http.ResponseWriter, r *http.Request)
01-coupling/04-loosely-coupled-app-layer/internal/http.go:71
Method
PostUser
Add a new user (POST /users)
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:21
Method
PostUser
PostUser operation middleware
01-coupling/04-loosely-coupled-app-layer/internal/http_server.go:57
Method
PostUser
(firstName string, lastName string, email string, expectedStatusCode int)
01-coupling/tests/client.go:93
Method
PostUser
(w http.ResponseWriter, r *http.Request)
01-coupling/02-loosely-coupled/internal/http.go:99
Method
PostUser
(w http.ResponseWriter, r *http.Request)
01-coupling/03-loosely-coupled-generated/internal/http.go:74
Method
PostUser
PostUser operation middleware
01-coupling/03-loosely-coupled-generated/internal/http_server.go:57
Method
PrimaryEmail
()
01-coupling/04-loosely-coupled-app-layer/internal/user.go:64
Method
Println
(args ...interface{})
03-cohesion/01-low-cohesion/subscribe.go:14
Method
Println
(args ...interface{})
03-cohesion/03-generics/subscribe.go:16
Method
Reload
Reload refetches the object from the database using the primary keys with an executor.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:1122
Method
Reload
Reload refetches the object from the database using the primary keys with an executor.
01-coupling/04-loosely-coupled-app-layer/models/users.go:1165
Method
Reload
Reload refetches the object from the database using the primary keys with an executor.
01-coupling/03-loosely-coupled-generated/models/emails.go:1122
Method
Reload
Reload refetches the object from the database using the primary keys with an executor.
01-coupling/03-loosely-coupled-generated/models/users.go:1165
Method
ReloadAll
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:1134
Method
ReloadAll
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
01-coupling/04-loosely-coupled-app-layer/models/users.go:1177
Method
ReloadAll
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
01-coupling/03-loosely-coupled-generated/models/emails.go:1134
Method
ReloadAll
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
01-coupling/03-loosely-coupled-generated/models/users.go:1177
Method
SetUser
SetUser of the email to the related item. Sets o.R.User to related. Adds o to related.R.Emails.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:551
Method
SetUser
SetUser of the email to the related item. Sets o.R.User to related. Adds o to related.R.Emails.
01-coupling/03-loosely-coupled-generated/models/emails.go:551
Method
StoreAuditLog
(ctx context.Context, log string)
04-transactions/05-tx-provider/repository.go:98
Method
TableName
()
01-coupling/02-loosely-coupled/internal/db.go:27
Method
TableName
()
01-coupling/02-loosely-coupled/internal/db.go:38
Method
TakePoints
(ctx context.Context, tx *sql.Tx, userID int, points int)
04-transactions/02-tx-in-logic/repository.go:43
Method
TakePoints
(ctx context.Context, tx *sql.Tx, userID int, points int)
04-transactions/02-tx-in-logic/app.go:23
Method
TakePoints
(ctx context.Context, userID int, points int)
04-transactions/01-no-tx/repository.go:47
Function
TestAll
(t *testing.T)
05-distributed-transactions/tests/all_test.go:25
Function
TestAll
(t *testing.T)
04-transactions/tests/all_test.go:25
Function
TestSubscribe
(t *testing.T)
03-cohesion/01-low-cohesion/subscribe_test.go:10
Function
TestSubscribe
(t *testing.T)
03-cohesion/03-generics/subscribe_test.go:8
Function
TestSubscribe
(t *testing.T)
03-cohesion/02-decorators/subscribe_test.go:8
Function
TestUser
(t *testing.T)
01-coupling/tests/end_to_end_test.go:13
Method
Transact
(txFunc func(adapters Adapters) error)
04-transactions/05-tx-provider/tx.go:18
Method
Update
Update uses an executor to update the Email. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update do
01-coupling/04-loosely-coupled-app-layer/models/emails.go:740
Method
Update
Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update doe
01-coupling/04-loosely-coupled-app-layer/models/users.go:770
Method
Update
Update uses an executor to update the Email. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update do
01-coupling/03-loosely-coupled-generated/models/emails.go:740
Method
Update
Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update doe
01-coupling/03-loosely-coupled-generated/models/users.go:770
Method
UpdateAll
UpdateAll updates all rows with the specified column values.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:801
Method
UpdateAll
UpdateAll updates all rows with the specified column values, using an executor.
01-coupling/04-loosely-coupled-app-layer/models/emails.go:818
Method
UpdateAll
UpdateAll updates all rows with the specified column values.
01-coupling/04-loosely-coupled-app-layer/models/users.go:837
Method
UpdateAll
UpdateAll updates all rows with the specified column values, using an executor.
01-coupling/04-loosely-coupled-app-layer/models/users.go:854
Method
UpdateAll
UpdateAll updates all rows with the specified column values.
01-coupling/03-loosely-coupled-generated/models/emails.go:801
Method
UpdateAll
UpdateAll updates all rows with the specified column values, using an executor.
01-coupling/03-loosely-coupled-generated/models/emails.go:818
← previous
next →
401–500 of 549, ranked by callers