Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotReferencedObject it's raised when a non pointer is received trying to parse into a struct ErrNotReferencedObject = errors.New("object not a pointer or reference") // ErrNotReferencedObject it's raised when a non pointer is received trying to parse into a struct ErrInvalidObject = errors.New("object specified is not valid") // ErrNonStructObject it's raised when the underlaying object is not an struct ErrNonStructObject = errors.New("underlaying object is not a struct") )
Functions ¶
func NewBlockScanner ¶
NewBlockScanner that reads a file searching for blocks separated by empty lines Uses bufio scanner under the hood so the way of iterating thru the matches is exactly the same than using a bufio.Scanner
<START OF FILE>
First line of block 1 Second line of block 1 First line of block 2 Second line of block 2
<END OF FILE>
Will return two blocks with 2 lines each
func NewLineScanner ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.