Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxPktSize is the maximum size of content of a Git pktline side-band-64k // packet, excluding size of length and band number // https://gitlab.com/gitlab-org/git/-/blob/v2.30.0/pkt-line.h#L216 MaxPktSize = 65520 )
Variables ¶
This section is empty.
Functions ¶
func Data ¶
Data returns the packet pkt without its length header. The length header is not validated. Returns an empty slice when pkt is a magic packet such as '0000'.
func NewScanner ¶
NewScanner returns a bufio.Scanner that splits on Git pktline boundaries Buf must be at least MaxPktSize large.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.