Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DispatchEntry ¶
type DispatchEntry struct { RelativePath string RelativeImport string FuncName string PackageRoot string }
func (DispatchEntry) ImportAlias ¶
func (de DispatchEntry) ImportAlias() string
type TemplateCompiler ¶
type TemplateCompiler struct {
// contains filtered or unexported fields
}
func NewTemplateCompiler ¶
func NewTemplateCompiler(fs afero.Fs, root, templateDir, output, packageRoot string) *TemplateCompiler
func (*TemplateCompiler) CompileGeneratedTemplates ¶
func (tc *TemplateCompiler) CompileGeneratedTemplates() error
type TemplateRenderer ¶
type TemplateRenderer interface { WriteCompiled() error DispatchEntry() DispatchEntry }
func NewTemplateRenderer ¶
func NewTemplateRenderer(path, root, templateDir, outputBase, packageRoot string, fs afero.Fs) TemplateRenderer
Click to show internal directories.
Click to hide internal directories.