Help us shape the future of Go! Take the 2026 Go Developer Survey

handlerutil

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogH

func LogH(skipLogs bool, next http.Handler) http.Handler

LogH is a middleware that logs requests via logrus.Debugf.

func RespondWithErr

func RespondWithErr(w http.ResponseWriter, status int, err error)

RespondWithErr responds using a JSON-serialized error message.

func RespondWithJSON

func RespondWithJSON(w http.ResponseWriter, status int, v any)

RespondWithJSON responds with a JSON-serialized value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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