httputil

package
v0.0.0-...-93f22b1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteErrorResponse

func WriteErrorResponse(statusCode int, message string, w http.ResponseWriter)

WriteErrorResponse write a non 200 error response

func WriteErrorResponses

func WriteErrorResponses(statusCode int, errors Errors, w http.ResponseWriter)

WriteErrorResponses write our error responses

Types

type Errors

type Errors []string

Errors to return

func (Errors) HasErrors

func (e Errors) HasErrors() bool

HasErrors return true if there are errors

Jump to

Keyboard shortcuts

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