MCPcopy Index your code
hub / github.com/go-git/go-git / Reader

Method Reader

plumbing/memory.go:44–46  ·  view source on GitHub ↗

Reader returns an io.ReadCloser used to read the object's content. For a MemoryObject, this reader is seekable.

()

Source from the content-addressed store, hash-verified

42//
43// For a MemoryObject, this reader is seekable.
44func (o *MemoryObject) Reader() (io.ReadCloser, error) {
45 return nopCloser{bytes.NewReader(o.cont)}, nil
46}
47
48// Writer returns a ObjectWriter used to write the object's content.
49func (o *MemoryObject) Writer() (io.WriteCloser, error) {

Callers 11

buildTagSignatureMethod · 0.95
signObjectFunction · 0.95
TestReaderMethod · 0.95
TestSeekableReaderMethod · 0.95
VerifyMethod · 0.95
VerifyMethod · 0.95

Calls

no outgoing calls