Documentation ¶ Index ¶ func RespondErr(ctx context.Context, w http.ResponseWriter, err error, code int) type Response Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RespondErr ¶ func RespondErr(ctx context.Context, w http.ResponseWriter, err error, code int) Types ¶ type Response ¶ type Response struct { Status string `json:"status"` Data any `json:"data"` ErrorType string `json:"errorType"` Error string `json:"error"` Warnings []string `json:"warnings"` } Source Files ¶ View all Source files err.go types.go Click to show internal directories. Click to hide internal directories.