MCPcopy Create free account
hub / github.com/decomp/decomp / visitFile

Function visitFile

cmd/go-post/main.go:235–243  ·  view source on GitHub ↗
(path string, f os.FileInfo, err error)

Source from the content-addressed store, hash-verified

233}
234
235func 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
245func isGoFile(f os.FileInfo) bool {
246 // ignore non-Go files

Callers

nothing calls this directly

Calls 3

isGoFileFunction · 0.85
processFileFunction · 0.85
reportFunction · 0.85

Tested by

no test coverage detected