Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModuleOrderIdx = 2 ModuleNameIdx = 3 )
Variables ¶
View Source
var ValidModuleNameRe = regexp.MustCompile(`^(([0-9]+)-)?(.+)$`)
ValidModuleNameRe defines a valid module name. It may have a number prefix: it is an order of the module.
Functions ¶
This section is empty.
Types ¶
type FileSystemLoader ¶
type FileSystemLoader struct {
// contains filtered or unexported fields
}
func NewFileSystemLoader ¶
func NewFileSystemLoader(moduleDirs string) *FileSystemLoader
func (*FileSystemLoader) LoadModule ¶ added in v1.3.9
func (fl *FileSystemLoader) LoadModule(_, modulePath string) (*modules.BasicModule, error)
reads single directory and returns BasicModule
func (*FileSystemLoader) LoadModules ¶
func (fl *FileSystemLoader) LoadModules() ([]*modules.BasicModule, error)
Click to show internal directories.
Click to hide internal directories.