Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiLineOutputHandling ¶
type MultiLineOutputHandling int
const ( // MultilineToOneLine squashes output into a single line with `\n` characters instead of newline MultilineToOneLine MultiLineOutputHandling = iota // MultilinePreserved preservers output with no modifications MultilinePreserved // MultilineWithIndent preserves multiline output, but adds indentation, so all lines are the same (used for yaml) MultilineWithIndent )
type OptionFunc ¶
type OptionFunc func(p *Parser)
func WithMaxFunctionCount ¶
func WithMaxFunctionCount(c int) OptionFunc
func WithMultilineOutputHandling ¶
func WithMultilineOutputHandling(handling MultiLineOutputHandling) OptionFunc
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) GetCurrentLine ¶
GetCurrentLine returns amount of lines parsed at the time of the call. If no errors are returned from Parse function, it will be equal to the line count of processed file.
func (*Parser) GetFunctionCalls ¶
GetFunctionCalls returns amount of functions called at the time of the call. If no errors are returned from Parse function, it will be equal to the total amount of functions+modifiers in processed file.
Click to show internal directories.
Click to hide internal directories.