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

Function isGoFile

cmd/go-post/main.go:245–249  ·  view source on GitHub ↗
(f os.FileInfo)

Source from the content-addressed store, hash-verified

243}
244
245func isGoFile(f os.FileInfo) bool {
246 // ignore non-Go files
247 name := f.Name()
248 return !f.IsDir() && !strings.HasPrefix(name, ".") && strings.HasSuffix(name, ".go")
249}
250
251func diff(b1, b2 []byte) (data []byte, err error) {
252 f1, err := ioutil.TempFile("", "go-fix")

Callers 1

visitFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected