Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Redirect ¶
Redirect performs an HTTP redirect to the specified URL using temporary redirect (307). It wraps the standard http.Redirect function for consistency across the codebase.
Parameters:
- w: http.ResponseWriter to write the redirect response
- r: *http.Request representing the current request
- url: string target URL to redirect to
Returns:
- string: empty string (for compatibility with controller return patterns)
func SafeCloseResponseBody ¶
SafeCloseResponseBody safely closes an HTTP response body with proper error handling. This utility function ensures consistent error handling and logging across the application.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.