- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for recursiveStringer (0.26 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
if methodName, ok := recursiveStringer(pass, arg); ok { pass.ReportRangef(call, "%s format %s with arg %s causes recursive %s method call", state.name, state.format, analysisutil.Format(pass.Fset, arg), methodName) return false } } return true } // recursiveStringer reports whether the argument e is a potential
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0) -
src/cmd/vet/testdata/print/print.go
// A data type we can print with "%s". type percentSStruct struct { a string b []byte C stringerarray } var percentSV percentSStruct type recursiveStringer int func (s recursiveStringer) String() string { _ = fmt.Sprintf("%d", s) _ = fmt.Sprintf("%#v", s) _ = fmt.Sprintf("%v", s) // ERROR "Sprintf format %v with arg s causes recursive .*String method call"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 27.5K bytes - Viewed (0)