sterrors

package
v0.0.0-...-9edf09d Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Verbose determines whether or not Printf will print anything
	Verbose = false
	// ErrNoPathsGiven is returned when no paths to any .go files were provided at the command line
	ErrNoPathsGiven = errors.New("No paths to any .go files were provided.")
)

Functions

func ErrMutuallyExclusiveParameters

func ErrMutuallyExclusiveParameters(p, p2 string) error

ErrMutuallyExclusiveParameters takes two inputs and returns a canned error response

func FormatHTTPError

func FormatHTTPError(err error, code int) []byte

func Printf

func Printf(s string, args ...interface{})

Printf prints a string depending on verbosity... should be in a debug package?

Types

type HttpError

type HttpError struct {
	Err  string `json:"error"`
	Code int    `json:"status_code"`
}

Jump to

Keyboard shortcuts

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