Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadUntilAny ¶
ReadUntilAny reads until any byte in the endAtAny array is reached
func SkipSpaces ¶
SkipSpaces skips all subsequent space characters. This includes " ", "\t", "\f", "\n", "\r", "\x00"
Types ¶
type Reader ¶
type Reader interface { Peek(n int) ([]byte, error) ReadByte() (byte, error) ReadBytes(size int) ([]byte, error) ReadRune() (rune, int, error) io.Reader }
Reader is an io.Reader which can also Peek and Read n number of bytes. Also includes a convenience function to read one byte
func NewBufReader ¶
NewBufReader returns a PeekingReader.Reader. It uses an underlying *bufio.Reader to implement its capability.
func NewMemReader ¶
NewMemReader returns a PeekingReader.Reader. It uses an underlying []byte buffer to provide its capability
Click to show internal directories.
Click to hide internal directories.