Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmptyTemplateError = Mrror("empty template named %s").Out NoTemplateError = Mrror("no template named %s").Out PathError = Mrror("path: %s returned error").Out NoLoadMethod = Mrror("load method not implemented") RenderError = Mrror("render error: %s").Out InvalidGoCodeError = Mrror("error formatting go code: invalid Go generated: %s\ncompile the package to analyze the error").Out NoBlockError = Mrror("no block named %s available").Out )
Functions ¶
Types ¶
type BaseLoader ¶
func (*BaseLoader) ListTemplates ¶
func (b *BaseLoader) ListTemplates() []string
func (*BaseLoader) ValidExtension ¶
func (b *BaseLoader) ValidExtension(ext string) bool
type Block ¶
type BlockSet ¶
type BlockSet struct {
// contains filtered or unexported fields
}
func NewBlockSet ¶
func NewBlockSet() *BlockSet
type Config ¶
func DefaultConfig ¶
type Configuration ¶
type FuncSet ¶
type FuncSet struct {
// contains filtered or unexported fields
}
func NewFuncSet ¶
func NewFuncSet() *FuncSet
type LoaderSet ¶
type LoaderSet struct {
// contains filtered or unexported fields
}
func NewLoaderSet ¶
func NewLoaderSet() *LoaderSet
func (*LoaderSet) AddLoaders ¶
func (*LoaderSet) GetLoaders ¶
type Logr ¶
type Logr interface { Fatalf(string, ...interface{}) Panicf(string, ...interface{}) Printf(string, ...interface{}) PrintIf(string, ...interface{}) }
var DefaultLogr Logr
type TemplateData ¶
type TemplateData struct {
Data map[string]interface{}
}
func NewTemplateData ¶
func NewTemplateData(b Block, fs *flag.FlagSet) *TemplateData
Source Files
¶
Click to show internal directories.
Click to hide internal directories.