package templtest import ( "embed" "errors" ) //go:embed data var data embed.FS func errorIs(a interface { Truef(value bool, msg string, args ...interface{}) bool }, actual, expected error) { a.Truef(errors.Is(actual, expected), "expected error %v to be %v", actual, expected) }