package
1.5.0
Repository: https://github.com/devtron-labs/go-git.git
Documentation: pkg.go.dev

# Functions

NewEncoder returns a new encoder that writes to w.
NewScanner returns a new Scanner to read from r.

# Constants

MaxPayloadSize is the maximum payload size of a pkt-line in bytes.
For compatibility with canonical Git implementation, accept longer pkt-lines.

# Variables

ErrInvalidPktLen is returned by Err() when an invalid pkt-len is found.
ErrPayloadTooLong is returned by the Encode methods when any of the provided payloads is bigger than MaxPayloadSize.
Flush is the payload to use with the Encode method to encode a flush-pkt.
FlushPkt are the contents of a flush-pkt pkt-line.
FlushString is the payload to use with the EncodeString method to encode a flush-pkt.

# Structs

An Encoder writes pkt-lines to an output stream.
Scanner provides a convenient interface for reading the payloads of a series of pkt-lines.