Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Formula ¶
type Formula struct {
// NOTE(MeteorsLiu): these signatures MUST match with
// the method declaration of ModuleF in formula/classfile.go
ModPath string
FromVer string
OnRequire func(proj *formula.Project, deps *formula.ModuleDeps)
OnBuild func(ctx *formula.Context, proj *formula.Project, out *formula.BuildResult)
// contains filtered or unexported fields
}
Formula represents a loaded LLAR formula file with its metadata and callbacks. It contains module information and build/dependency handling functions.
func LoadFS ¶
func LoadFS(fsys fs.ReadFileFS, path string) (*Formula, error)
LoadFS loads a formula from a filesystem interface. This allows loading formulas from remote repositories or mock filesystems. The path should be relative to the filesystem root.
Click to show internal directories.
Click to hide internal directories.