go-erorr/is.go

10 lines
104 B
Go
Raw Normal View History

2024-07-04 14:50:53 +00:00
package erorr
import (
"errors"
)
func Is(err, target error) bool {
return errors.Is(err, target)
}