Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedFileType = errors.New("unsupported file type") ErrNoInput = errors.New("no file content found") ErrInvalidPath = errors.New("invalid path provided") ErrInvalidSyntax = errors.New("invalid syntax given") ErrDuplicatedMarker = errors.New("duplicated marker within a single file") )
Functions ¶
func Parse ¶
Parse reads filename and input, and parses data in the file.
The steps are as follows:
- Read input data
- Scan each line
- Look for regex match for marker
- Save matched line number and options found
- Verify parsed data, and return
If any of the above steps failed, it would return an error. This function does not populate the ContentAfter.
TODO: Consider merging with the private parse method, as this public
function is not adding any value at the moment.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.