util

package
v0.0.0-...-cc4ef14 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DescriptionAndCodeAsJSON

func DescriptionAndCodeAsJSON(code int, description string, a ...interface{}) string

func DescriptionAsJSON

func DescriptionAsJSON(description string, a ...interface{}) string

func FprintDescriptionAndCodeAsJSON

func FprintDescriptionAndCodeAsJSON(responseWriter http.ResponseWriter, code int, description string, a ...interface{})

func FprintDescriptionAsJSON

func FprintDescriptionAsJSON(responseWriter http.ResponseWriter, description string, a ...interface{})

func PanicOnError

func PanicOnError(e error)

func RequestWithContextValues

func RequestWithContextValues(r *http.Request, keysAndValues ...interface{}) *http.Request

Types

type SafeCloser

type SafeCloser bool

func (*SafeCloser) Close

func (safeCloser *SafeCloser) Close(closer io.Closer) error

Jump to

Keyboard shortcuts

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