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

Method Encode

plumbing/object/object.go:112–120  ·  view source on GitHub ↗

Encode encodes a Signature into a writer.

(w io.Writer)

Source from the content-addressed store, hash-verified

110
111// Encode encodes a Signature into a writer.
112func (s *Signature) Encode(w io.Writer) error {
113 if _, err := fmt.Fprintf(w, "%s <%s> ", s.Name, s.Email); err != nil {
114 return err
115 }
116 if err := s.encodeTimeAndTimeZone(w); err != nil {
117 return err
118 }
119 return nil
120}
121
122var timeZoneLength = 5
123

Callers

nothing calls this directly

Calls 1

encodeTimeAndTimeZoneMethod · 0.95

Tested by

no test coverage detected