common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package common provides shared HTTP utility functions for API handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteErrorResponse

func WriteErrorResponse(w http.ResponseWriter, message string, statusCode int)

WriteErrorResponse writes a standardized error response

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, data interface{}, statusCode int)

WriteJSONResponse writes a JSON response with the given data

Types

This section is empty.

Jump to

Keyboard shortcuts

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