utils

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadJSON

func ReadJSON(r *http.Request, v interface{}) error

ReadJSON reads JSON from the request body

func WriteError

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

WriteError writes an error to the response

func WriteJSON

func WriteJSON(w http.ResponseWriter, status int, v interface{}) error

WriteJSON writes JSON to the response

Types

This section is empty.

Jump to

Keyboard shortcuts

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