- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isFormatter (0.12 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go
// %w accepts only errors. if m.t == argError { return types.ConvertibleTo(typ, errorType) } // If the type implements fmt.Formatter, we have nothing to check. if isFormatter(typ) { return true } // If we can use a string, might arg (dynamically) implement the Stringer or Error interface? if m.t&argString != 0 && isConvertibleToString(typ) { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 8.6K bytes - Viewed (0)