Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatError ¶
FormatError is a utility function that takes advantage of the metadata stored in the errors returned by this package's parser.
If the second argument `colored` is true, the error message is colorized. If the third argument `inclSource` is true, the error message will contain snippets of the YAML source that was used.
func ParseBytes ¶
ParseBytes parse from byte slice, and returns ast.File
Types ¶
Click to show internal directories.
Click to hide internal directories.