Versions in this module Expand all Collapse all v0 v0.0.2 Dec 27, 2022 Changes in this version type Reader + Content func(begin, end Offset) ([]byte, error) v0.0.1 Dec 27, 2022 Changes in this version + type Offset int + type Pos struct + func (p Pos) Advance(n int) Pos + func (p Pos) Clone() Pos + func (p Pos) Column() int + func (p Pos) Filename() string + func (p Pos) Line() int + func (p Pos) Next() Pos + func (p Pos) Offset() int + func (p Pos) Raw() position.Position + func (p Pos) String() string + type RawPos struct + func (p RawPos) Adjusted() position.Position + func (p RawPos) Column() int + func (p RawPos) Filename() string + func (p RawPos) Line() int + type Reader interface + ByteAt func(o Offset) (byte, error) + Close func() error + Column func(o Offset, adjusted bool) int + Filename func(o Offset, adjusted bool) string + IsAtEOI func() bool + Line func(o Offset, adjusted bool) int + NameLineAndColumn func(o Offset, adjusted bool) (string, int, int) + Next func() (byte, error) + Offset func() Offset + Peek func() (byte, error) + Position func() position.Position + PositionString func(o Offset, adjusted bool) string + SetOffset func(o Offset) error + func OnBytes(content []byte) (Reader, error) + func OnFile(name string) (Reader, error) + func OnString(s string) (Reader, error)