json

package
v0.0.0-...-a84335b Latest Latest
Warning

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

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

Documentation

Overview

Package json formats JSON http responses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(w http.ResponseWriter, r *http.Request, err error)

Error will write the error to the client with a json content type.

func Response

func Response(w http.ResponseWriter, r *http.Request, res any)

Response will write to the client with a json content type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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