(path string, f os.FileInfo, err error)
| 233 | } |
| 234 | |
| 235 | func visitFile(path string, f os.FileInfo, err error) error { |
| 236 | if err == nil && isGoFile(f) { |
| 237 | err = processFile(path, false) |
| 238 | } |
| 239 | if err != nil { |
| 240 | report(err) |
| 241 | } |
| 242 | return nil |
| 243 | } |
| 244 | |
| 245 | func isGoFile(f os.FileInfo) bool { |
| 246 | // ignore non-Go files |
nothing calls this directly
no test coverage detected