Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidOption = errors.New("invalid option") ErrInvalidSectionHeader = errors.New("invalid section header") )
These are the errors that can be returned in ParseError.Error.
Functions ¶
This section is empty.
Types ¶
type ParseError ¶
type ParseError struct { Line int // Line where the error occurred Column int // Column (rune index) where the error occurred Err error // The actual error }
A ParseError is returned for parsing errors. The first line is 1. The first column is 1.
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
A Reader reads sections of options from a configuration file.
Click to show internal directories.
Click to hide internal directories.