Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineReader ¶
LineReader read text stream line by line
func New ¶
func New(r io.Reader, filename string) *LineReader
New create LineReader from io.Reader,
note: use &LineReader{br, filename, 0} to create from bufio.Reader
func (*LineReader) Error ¶
func (lr *LineReader) Error(snippet, msg string) error
Error create an error with current file name and line number information
Click to show internal directories.
Click to hide internal directories.