package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Apr 8, 2015
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
File source
Currently supports YAML files only.
More example files.
Example URLs
--source=file:///absolute/path/to/file.yml
--source=file://relative/path/to/file.yml
--source=file://../relative/path/to/file.yml
--source=file://file.yml
Default label
-
If you don't ask for a specific label, it will
- return label
default
if found
- or return first found label
-
If you ask for a specific label, it will
- return this specific label if found
- and just don't return anything else if not found
Documentation
¶
View Source
var (
ErrEmptyPath = errors.New("source: file: no path given")
ErrYamlParsing = errors.New("source: file: yaml parsing failed")
ErrYamlLevels = errors.New("source: file: only 2 levels of indentation allowed")
)
File implements Source interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.