util

package
v0.0.0-...-b7b4bc5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteError

func WriteError(res http.ResponseWriter, status int, err string) error

func WriteJson

func WriteJson(res http.ResponseWriter, body any) error

WriteJson writes the specified body as JSON. The body is NOT CLOSED after writing to it.

Returns an error if the write fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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