Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppError ¶
AppError is a structured error that carries an HTTP status code. Handlers return *AppError instead of writing to the context directly, keeping business logic free of gin dependencies.
if user == nil {
return response.NewError(http.StatusNotFound, "user not found")
}
Click to show internal directories.
Click to hide internal directories.