guard

package
v0.0.0-...-a361e5b Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package guard panics when error occurs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailOnError

func FailOnError(err error, message string, a ...interface{})

FailOnError panics when error occurs.

func HandleErrorWithInternalServerError

func HandleErrorWithInternalServerError(w http.ResponseWriter, r *http.Request, err error, message string)

FailOnError panics when error occurs.

func HandleErrorWithNotFound

func HandleErrorWithNotFound(w http.ResponseWriter, r *http.Request, err error, message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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