1
0
mirror of https://github.com/mgechev/revive.git synced 2025-02-09 13:37:14 +02:00
revive/testdata/error-strings-with-custom-functions.go

13 lines
298 B
Go
Raw Normal View History

package fixtures
import (
pkgErrors "github.com/pkg/errors"
)
// Check for the error strings themselves.
func errorsStrings(x int) error {
var err error
return pkgErrors.Wrap(err, "This %d is too low") // MATCH /error strings should not be capitalized or end with punctuation or a newline/
}