Documentation ¶
Index ¶
- type Info
- type Option
- type Template
- func (t *Template) AddFunc(funcMap textTemplate.FuncMap)
- func (t *Template) Execute(opts ...Option) error
- func (t *Template) ExecuteBuffer(opts ...Option) ([]byte, error)
- func (t *Template) ListFunctions()
- func (t *Template) Parse(content string) error
- func (t *Template) ParseGlob(pattern string) error
- func (t *Template) Reset()
- func (t *Template) SetDelims(left, right string) *Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Option ¶
type Option func(options *options)
func WithContent ¶
func WithParsed ¶
func WithTemplate ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func (*Template) AddFunc ¶
func (t *Template) AddFunc(funcMap textTemplate.FuncMap)
func (*Template) ListFunctions ¶
func (t *Template) ListFunctions()
Click to show internal directories.
Click to hide internal directories.