fs

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL