Documentation
¶
Index ¶
- type Engine
- func (e *Engine) AddFunc(name string, fn interface{}) *Engine
- func (e *Engine) AddFuncMap(m map[string]interface{}) *Engine
- func (e *Engine) AddLayouts(layouts ...string) *Engine
- func (e *Engine) Debug(enabled bool) *Engine
- func (e *Engine) Delims(left, right string) *Engine
- func (e *Engine) FuncMap() map[string]any
- func (e *Engine) Load() error
- func (e *Engine) Render(out io.Writer, template string, binding interface{}, layout ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine struct
func (*Engine) AddFunc ¶
AddFunc adds the function to the template's function map. It is legal to overwrite elements of the default actions
func (*Engine) AddFuncMap ¶
AddFuncMap adds the functions from a map to the template's function map. It is legal to overwrite elements of the default actions
func (*Engine) AddLayouts ¶
Click to show internal directories.
Click to hide internal directories.