MCPcopy
hub / github.com/go-git/go-git / Writer

Method Writer

plumbing/memory.go:49–51  ·  view source on GitHub ↗

Writer returns a ObjectWriter used to write the object's content.

()

Source from the content-addressed store, hash-verified

47
48// Writer returns a ObjectWriter used to write the object's content.
49func (o *MemoryObject) Writer() (io.WriteCloser, error) {
50 return o, nil
51}
52
53func (o *MemoryObject) Write(p []byte) (n int, err error) {
54 o.cont = append(o.cont, p...)

Calls

no outgoing calls