errcheck

package
v0.0.0-...-4c380ec Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2013 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package errcheck is the library used to implement the errcheck command-line tool.

Note: The API of this package has not been finalized and may change at any point.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoGoFiles is returned when CheckPackage is run on a package with no Go source files
	ErrNoGoFiles = errors.New("package contains no go source files")
)

Functions

func CheckPackage

func CheckPackage(pkgPath string, ignore map[string]*regexp.Regexp, blank bool) error

Types

type UncheckedErrors

type UncheckedErrors struct {
	// Errors is a list of all the unchecked errors in the package.
	// Printing an error reports its position within the file and the contents of the line.
	Errors []error
}

UncheckedErrors is returned from the CheckPackage function if the package contains any unchecked errors.

func (UncheckedErrors) Error

func (e UncheckedErrors) Error() string

Jump to

Keyboard shortcuts

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