Documentation
¶
Index ¶
- Constants
- type Descriptor
- type Loader
- func (l *Loader) LoadFile(locator *Locator) *Descriptor
- func (l *Loader) LoadFiles(locators []*Locator) (descriptors map[string]*Descriptor)
- func (l *Loader) LoadScripts(sourceDirs []string) map[string]*Descriptor
- func (l *Loader) ReadDir(sourceDir string, ext string) ([]*Locator, error)
- func (l *Loader) ReadDirs(sourceDirs []string, ext string) (locators []*Locator, err error)
- type LoaderOptions
- type Locator
Constants ¶
View Source
const TAG_PATTERN string = `[a-zA-Z][a-zA-Z0-9]*([_-][a-zA-Z0-9]*)*`
View Source
const TIME_RFC3339 string = `` /* 161-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func NewLoader ¶
func NewLoader(opts LoaderOptions) (l *Loader, err error)
func (*Loader) LoadFile ¶
func (l *Loader) LoadFile(locator *Locator) *Descriptor
func (*Loader) LoadFiles ¶
func (l *Loader) LoadFiles(locators []*Locator) (descriptors map[string]*Descriptor)
func (*Loader) LoadScripts ¶
func (l *Loader) LoadScripts(sourceDirs []string) map[string]*Descriptor
type LoaderOptions ¶
type LoaderOptions interface{}
Click to show internal directories.
Click to hide internal directories.