MCPcopy Create free account
hub / github.com/bufbuild/buf / NewFiles

Function NewFiles

private/bufpkg/bufprotosource/bufprotosource.go:567–573  ·  view source on GitHub ↗

NewFiles converts the input Image into Files.

(
	ctx context.Context,
	inputFiles []F,
	resolver protodesc.Resolver,
)

Source from the content-addressed store, hash-verified

565
566// NewFiles converts the input Image into Files.
567func NewFiles[F InputFile](
568 ctx context.Context,
569 inputFiles []F,
570 resolver protodesc.Resolver,
571) ([]File, error) {
572 return newFiles(ctx, inputFiles, resolver)
573}
574
575// SortFiles sorts the Files by FilePath.
576func SortFiles(files []File) {

Callers 4

TestGoogleapisFunction · 0.92
getProtosourceFilesFunction · 0.92
TestNewFilesFunction · 0.85

Calls 1

newFilesFunction · 0.85

Tested by 2

TestGoogleapisFunction · 0.74
TestNewFilesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…