Fix verification of boilerplate, style and file headers
This commit is contained in:
parent
738d83985e
commit
a4f67c0853
20 changed files with 297 additions and 18 deletions
|
|
@ -84,10 +84,13 @@ func IsInvalidContent(e error) bool {
|
|||
return ok
|
||||
}
|
||||
|
||||
// New returns a new error
|
||||
func New(m string) error {
|
||||
return errors.New(m)
|
||||
}
|
||||
|
||||
// Errorf formats according to a format specifier and returns the string
|
||||
// as a value that satisfies error.
|
||||
func Errorf(format string, args ...interface{}) error {
|
||||
return errors.Errorf(format, args)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue