MCPcopy Index your code
hub / github.com/google/codesearch / File

Method File

regexp/match.go:374–382  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

372}
373
374func (g *Grep) File(name string) {
375 f, err := os.Open(name)
376 if err != nil {
377 fmt.Fprintf(g.Stderr, "%s\n", err)
378 return
379 }
380 defer f.Close()
381 g.Reader(f, name)
382}
383
384var nl = []byte{'\n'}
385

Callers 2

mainFunction · 0.95
MainFunction · 0.95

Calls 1

ReaderMethod · 0.95

Tested by

no test coverage detected