Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
AssertEqual asserts the Perrors are equal except for the error messages. The error messages are simple checked to ensure they are not empty.
Types ¶
type Perror ¶
type Perror interface {
// Line returns the offending line index within the scroill.
Line() int
// Cols returns the offending column indices within the scroll.
Cols() []int
// Errors returns an array of error messages.
Errors() []string
}
Perror represents an error found while parsing.
func NewByError ¶
NewByError creates a new Perror from an error.
Click to show internal directories.
Click to hide internal directories.