utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Validate = validator.New(validator.WithRequiredStructEnabled())

Functions

func ParseJSON

func ParseJSON(w http.ResponseWriter, r *http.Request, v any)

func WriteError

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

func WriteJSON

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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