template

package
v0.0.0-...-b4c0e7c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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

func (*TemplateCompiler) Walk

func (tc *TemplateCompiler) Walk(path string, info os.FileInfo, err error) error

type TemplateRenderer

type TemplateRenderer interface {
	WriteCompiled() error
	DispatchEntry() DispatchEntry
}

func NewTemplateRenderer

func NewTemplateRenderer(path, root, templateDir, outputBase, packageRoot string, fs afero.Fs) TemplateRenderer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL