Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidReceiver = fmt.Errorf("receiver must be compatible with *Line")
ErrInvalidReceiver is raised when an invalid receiver is provided
View Source
var ErrInvalidSyntax = fmt.Errorf("invalid syntax")
ErrInvalidSyntax is raised when a line cannot be understood
View Source
var ErrNullReceiver = fmt.Errorf("receiver must not be null")
ErrNullReceiver is raised when a null receiver is provided
View Source
var ErrUnclosedSection = fmt.Errorf("unclosed section")
ErrUnclosedSection is raised when there is unclosed sections reaching the end of the file
View Source
var ErrUnexpectedSectionClose = fmt.Errorf("unexpected section close")
ErrUnexpectedSectionClose is raised when reading a section close '}' without an open section
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder implements parser.Decoder
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder implements parser.Encoder
type Line ¶
type Line struct { // Type of line Type LineType // Components of the line Components []string // Lines children of the current section (nil if not a section) Lines []*Line }
Line represents a meaningful line
Click to show internal directories.
Click to hide internal directories.