utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondWithError

func RespondWithError(w http.ResponseWriter, statusCode int, message string, err error)

RespondWithError sends a JSON error response with the given status code

func RespondWithJSON

func RespondWithJSON(w http.ResponseWriter, statusCode int, payload interface{})

RespondWithJSON sends a JSON response with the given status code

Types

This section is empty.

Jump to

Keyboard shortcuts

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