package
4.0.0-rc1+incompatible
Repository: https://github.com/stupidhod/go-git.git
Documentation: pkg.go.dev

# Functions

New returns an empty PktLines (with no payloads) ready to be used.
NewScanner returns a new Scanner to read from r.

# Constants

MaxPayloadSize is the maximum payload size of a pkt-line in bytes.

# Variables

ErrEmptyPayload is returned by the Add methods when an empty payload is provided.
ErrInvalidPktLen is returned by Err() when an invalid pkt-len is found.
ErrPayloadTooLong is returned by the Add methods when any of the provided payloads is bigger than MaxPayloadSize.

# Structs

PktLines values represent a succession of pkt-lines.
Scanner provides a convenient interface for reading the payloads of a series of pkt-lines.