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

Method AddPaths

index/write.go:100–102  ·  view source on GitHub ↗

AddPaths adds the given paths to the index's list of paths.

(paths []string)

Source from the content-addressed store, hash-verified

98
99// AddPaths adds the given paths to the index's list of paths.
100func (ix *IndexWriter) AddPaths(paths []string) {
101 ix.paths = append(ix.paths, paths...)
102}
103
104// AddFile adds the file with the given name (opened using os.Open)
105// to the index. It logs errors using package log.

Callers 2

mainFunction · 0.80
buildFlushIndexFunction · 0.80

Calls

no outgoing calls

Tested by 1

buildFlushIndexFunction · 0.64