Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All(r io.Reader) ([]types.Definition, error)
All receives a reader from a definition file and parses it into a slice of Definition structs or returns error if an error is encounter while parsing
func IsInvalidSectionError ¶
IsInvalidSectionError returns a boolean indicating whether the error is reporting if a section of the definition is not a standard section
func IsValidDefinition ¶
IsValidDefinition returns whether or not the given file is a valid definition
func ParseDefinitionFile ¶
func ParseDefinitionFile(r io.Reader) (d types.Definition, err error)
ParseDefinitionFile receives a reader from a definition file and parse it into a Definition struct or return error if the definition file has a bad section.
Types ¶
type InvalidSectionError ¶
InvalidSectionError records an error and the sections that caused it.
func (*InvalidSectionError) Error ¶
func (e *InvalidSectionError) Error() string
Click to show internal directories.
Click to hide internal directories.