MCPcopy Create free account
hub / github.com/go-git/go-git / Encodef

Method Encodef

plumbing/format/pktline/encoder.go:122–126  ·  view source on GitHub ↗

Encodef encodes a single pkt-line with the payload formatted as the format specifier. The rest of the arguments will be used in the format string.

(format string, a ...interface{})

Source from the content-addressed store, hash-verified

120// the format specifier. The rest of the arguments will be used in
121// the format string.
122func (e *Encoder) Encodef(format string, a ...interface{}) error {
123 return e.EncodeString(
124 fmt.Sprintf(format, a...),
125 )
126}

Callers 15

EncodeMethod · 0.95
EncodeMethod · 0.95
encodeMethod · 0.95
EncodeMethod · 0.95
EncodeMethod · 0.95
sendDoneFunction · 0.95
EncodeMethod · 0.95
TestEncodefMethod · 0.95
encodePrefixFunction · 0.80
encodeRefsFunction · 0.80
encodeShallowFunction · 0.80
encodeFirstWantMethod · 0.80

Calls 1

EncodeStringMethod · 0.95

Tested by 1

TestEncodefMethod · 0.76