You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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)
|
|
}
|