Skip to content

romanyx/erris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erris

erris is a program for checking that errors are compared or type asserted using go1.13 errors.Is and errors.As functions.

Build Status Report

Install

go get -u github.com/romanyx/erris/cmd/erris

Use

For basic usage, just give the package path of interest as the first argument:

erris github.com/romanyx/erris/testdata

Outputs:

github.com/romanyx/erris/testdata/main.go:14:5:	use errors.Is to compare an error
github.com/romanyx/erris/testdata/main_test.go:11:14:	use errors.As to type assert an error

To check all packages beneath the current directory:

erris ./...

About

Linter for errors.Is and errors.As

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages