Documentation ¶
Overview ¶
Example (Errortest) ¶
pkglist, err := pkgutil.FindAllSubPackages("errortest", "") if err != nil { fmt.Println(err) } errs := Check(pkglist, false) for _, err := range errs { fmt.Println(err) }
Output: error factory "github.com/tsaikd/gobuilder/checkerror/vendor/errortest/provide" "ErrorProvideTest" declared but not used error factory "github.com/tsaikd/gobuilder/checkerror/vendor/errortest/provide2" "ErrorProvide2Test" declared but not used
Example (Gobuilder) ¶
pkglist, err := pkgutil.FindAllSubPackages("github.com/tsaikd/gobuilder", "..") if err != nil { fmt.Println(err) } errs := Check(pkglist, false) for _, err := range errs { fmt.Println(err) }
Output:
Example (Pkgtest) ¶
pkglist, err := pkgutil.FindAllSubPackages("pkgtest", "") if err != nil { fmt.Println(err) } errs := Check(pkglist, false) for _, err := range errs { fmt.Println(err) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorUnusedFactory2 = errutil.NewFactory("error factory %q %q declared but not used") ErrorNoErrorFactoryFound = errutil.NewFactory("no error factory found") )
errors
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.