Versions in this module Expand all Collapse all v1 v1.20.1 Sep 22, 2026 v1.20.0 Sep 22, 2026 Changes in this version + const DefaultBufferSize + const MaxLineLength + const MinBufferSize + var ErrLineTooLong = errors.New("line too long") + type Block struct + Err error + Header string + LineLength int + Payload []byte + func (b *Block) Summary() string + type Line struct + Block *Block + Text string + type Splitter struct + func NewSplitter(bufferSize int, onLine func(line string), onBlock func(block *Block)) *Splitter + func (s *Splitter) Close() error + func (s *Splitter) Err() error + func (s *Splitter) Write(p []byte) (n int, err error)