utils

package
v0.0.0-...-6723153 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

func ErrorResponse

func ErrorResponse(message string, code int) render.Renderer

func RecoverIfError

func RecoverIfError(w http.ResponseWriter, r *http.Request)

func ServiceError

func ServiceError(message string, code int) error

func ServiceErrorResponse

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

func ValidateStruct

func ValidateStruct(s interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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