go-erorr/is.go

10 lines
104 B
Go

package erorr
import (
"errors"
)
func Is(err, target error) bool {
return errors.Is(err, target)
}