Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
Importer is an Importer that can read Risor code modules from a filesystem implementing the `fs.FS` interface.
func NewImporter ¶
func NewImporter(opts ImporterOptions) *Importer
NewImporter returns an Importer that can read Risor code modules from a filesystem implementing the `fs.FS` interface.
type ImporterOptions ¶
type ImporterOptions struct {
// Global names that should be available when the module is compiled.
GlobalNames []string
// The filesystem to search for Risor modules.
SourceFS fs.FS
}
ImporterOptions configure an Importer that can read from a filesystem implementing the `fs.FS` interface.
Click to show internal directories.
Click to hide internal directories.