Versions in this module Expand all Collapse all v1 v1.3.2 Nov 21, 2020 v1.3.1 Nov 21, 2020 Changes in this version + const EOF + type BlockReader interface + Reset func(segment *Segments) + func NewBlockReader(source []byte, segments *Segments) BlockReader + type Reader interface + Advance func(int) + AdvanceAndSetPadding func(int, int) + AdvanceLine func() + FindSubMatch func(reg *regexp.Regexp) [][]byte + LineOffset func() int + Match func(reg *regexp.Regexp) bool + Peek func() byte + PeekLine func() ([]byte, Segment) + Position func() (int, Segment) + PrecendingCharacter func() rune + ResetPosition func() + SetPadding func(int) + SetPosition func(int, Segment) + SkipBlankLines func() (Segment, int, bool) + SkipSpaces func() (Segment, int, bool) + Source func() []byte + Value func(Segment) []byte + func NewReader(source []byte) Reader + type Segment struct + Padding int + Start int + Stop int + func NewSegment(start, stop int) Segment + func NewSegmentPadding(start, stop, n int) Segment + func (t *Segment) Between(other Segment) Segment + func (t *Segment) ConcatPadding(v []byte) []byte + func (t *Segment) IsEmpty() bool + func (t *Segment) Len() int + func (t *Segment) TrimLeftSpace(buffer []byte) Segment + func (t *Segment) TrimLeftSpaceWidth(width int, buffer []byte) Segment + func (t *Segment) TrimRightSpace(buffer []byte) Segment + func (t *Segment) Value(buffer []byte) []byte + func (t *Segment) WithStart(v int) Segment + func (t *Segment) WithStop(v int) Segment + type Segments struct + func NewSegments() *Segments + func (s *Segments) Append(t Segment) + func (s *Segments) AppendAll(t []Segment) + func (s *Segments) At(i int) Segment + func (s *Segments) Clear() + func (s *Segments) Len() int + func (s *Segments) Set(i int, v Segment) + func (s *Segments) SetSliced(lo, hi int) + func (s *Segments) Sliced(lo, hi int) []Segment + func (s *Segments) Unshift(v Segment)