response

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package response provides HTTP response utilities for the application. It includes standardized response formatting and error handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error added in v1.3.0

func Error(w http.ResponseWriter, status int, message string)

Error sends an error JSON response

func SendResponseRaw

func SendResponseRaw(w http.ResponseWriter, status int, resp []byte)

func SendXMLResponseRaw

func SendXMLResponseRaw(w http.ResponseWriter, status int, resp []byte)

func Success added in v1.3.0

func Success(w http.ResponseWriter, status int, message string, data any)

Success sends a successful JSON response

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL