- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for implementsError (0.09 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdmethods/stdmethods.go
return } // Special case: Is, As and Unwrap only apply when type // implements error. if id.Name == "Is" || id.Name == "As" || id.Name == "Unwrap" { if recv := sign.Recv(); recv == nil || !implementsError(recv.Type()) { return } } // Special case: Unwrap has two possible signatures. // Check for Unwrap() []error here. if id.Name == "Unwrap" { if args.Len() == 0 && results.Len() == 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 6.9K bytes - Viewed (0)