Documentation
¶
Index ¶
- type RuneReader
- type Template
- func (t *Template) Exec(writer io.Writer, context interface{}) (int, error)
- func (t *Template) MustExec(writer io.Writer, context interface{})
- func (t *Template) MustParse(r io.Reader) *Template
- func (t *Template) MustParseString(s string) *Template
- func (t *Template) Parse(reader io.Reader) error
- func (t *Template) ParseString(s string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuneReader ¶
type Template ¶
type Template struct {
StartTokens []rune
EndTokens []rune
// contains filtered or unexported fields
}
func (*Template) MustParseString ¶
func (*Template) ParseString ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
evaluate_readme
command
read README.md and find all “`go “` snippets and run them
|
read README.md and find all “`go “` snippets and run them |
|
render_readme
command
read README.md.tmpl and find all “`go “` snippets and run them
|
read README.md.tmpl and find all “`go “` snippets and run them |
|
simple
command
|
Click to show internal directories.
Click to hide internal directories.