Documentation ¶ Index ¶ func FormatHandler(fn func(*http.Request) (any, error)) http.HandlerFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FormatHandler ¶ func FormatHandler(fn func(*http.Request) (any, error)) http.HandlerFunc FormatHandler wraps a function that returns data and automatically handles formatting based on the HTTP request (Accept header, query params, URL extension) Types ¶ This section is empty. Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.