gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/errors/error.go (about) 1 package errors 2 3 import ( 4 _ "unsafe" 5 ) 6 7 //go:linkname New errors.New 8 func New(text string) error 9 10 //go:linkname Unwrap errors.Unwrap 11 func Unwrap(err error) error 12 13 //go:linkname As errors.As 14 func As(err error, target any) bool 15 16 //go:linkname Is errors.Is 17 func Is(err, target error) bool