Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompilePlugin ¶
func CompilePlugin(model configmodel.ModelInfo, config CompilerConfig) error
CompilePlugin compiles a model plugin to the given path
Types ¶
type CompilerConfig ¶
type CompilerConfig struct {
TemplatePath string
BuildPath string
OutputPath string
Target string
Replace string
}
CompilerConfig is a plugin compiler configuration
type CompilerInfo ¶
CompilerInfo is the compiler info
type PluginCompiler ¶
type PluginCompiler struct {
Config CompilerConfig
}
PluginCompiler is a model plugin compiler
func NewPluginCompiler ¶
func NewPluginCompiler(config CompilerConfig) *PluginCompiler
NewPluginCompiler creates a new model plugin compiler
func (*PluginCompiler) CompilePlugin ¶
func (c *PluginCompiler) CompilePlugin(model configmodel.ModelInfo) error
CompilePlugin compiles a model plugin to the given path
type TemplateInfo ¶
type TemplateInfo struct {
Model configmodel.ModelInfo
Compiler CompilerInfo
}
TemplateInfo provides all the variables for templates
Click to show internal directories.
Click to hide internal directories.