Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFileNotFound = errors.New("mod file not found")
View Source
var Export = &importSpec{impl("<form@export mods:<tupl|exp|alt str tag|str> none>"), true}
View Source
var Import = &importSpec{impl("<form@import mods:<tupl|exp|alt str tag|str> none>"), false}
View Source
var Module = &moduleSpec{impl("<form@module name:sym tags?:tupl|exp none>")}
View Source
var Registry = new(SysMods)
Registry provides a central global module registry for convenience.
Functions ¶
This section is empty.
Types ¶
type FSMods ¶
type LoaderEnv ¶
LoaderEnv adds module awareness to a program environment. It provides the mod and use forms and holds the module loaders.
func FindLoaderEnv ¶
func NewLoaderEnv ¶
NewLoaderEnv create a new module loader environment with the given parent env and loader. The parent env should be used as basis for external module loads.
type ModEnv ¶
ModEnv encapsulates a module environment.
func FindModEnv ¶
type Src ¶
Src is the raw and program independent module source for a location. The input is represented either as an abstract syntax tree or as program specific setup hook.
Click to show internal directories.
Click to hide internal directories.