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

Function newFile

private/bufpkg/bufmodule/file.go:34–39  ·  view source on GitHub ↗
(fileInfo FileInfo, readCloser io.ReadCloser)

Source from the content-addressed store, hash-verified

32}
33
34func newFile(fileInfo FileInfo, readCloser io.ReadCloser) *file {
35 return &file{
36 FileInfo: fileInfo,
37 ReadCloser: readCloser,
38 }
39}
40
41func (*file) isFile() {}

Callers 1

GetFileMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…