type text/template.Template
63 uses
text/template (current package)
exec.go#L35: tmpl *Template
exec.go#L182: func (t *Template) ExecuteTemplate(wr io.Writer, name string, data any) error {
exec.go#L200: func (t *Template) Execute(wr io.Writer, data any) error {
exec.go#L204: func (t *Template) execute(wr io.Writer, data any) (err error) {
exec.go#L226: func (t *Template) DefinedTemplates() string {
funcs.go#L142: func findFunction(name string, tmpl *Template) (v reflect.Value, isBuiltin, ok bool) {
helper.go#L23: func Must(t *Template, err error) *Template {
helper.go#L39: func ParseFiles(filenames ...string) (*Template, error) {
helper.go#L54: func (t *Template) ParseFiles(filenames ...string) (*Template, error) {
helper.go#L61: func parseFiles(t *Template, readFile func(string) (string, []byte, error), filenames ...string) (*Template, error) {
helper.go#L78: var tmpl *Template
helper.go#L104: func ParseGlob(pattern string) (*Template, error) {
helper.go#L116: func (t *Template) ParseGlob(pattern string) (*Template, error) {
helper.go#L122: func parseGlob(t *Template, pattern string) (*Template, error) {
helper.go#L137: func ParseFS(fsys fs.FS, patterns ...string) (*Template, error) {
helper.go#L145: func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error) {
helper.go#L150: func parseFS(t *Template, fsys fs.FS, patterns []string) (*Template, error) {
option.go#L42: func (t *Template) Option(opt ...string) *Template {
option.go#L50: func (t *Template) setOption(opt string) {
template.go#L15: tmpl map[string]*Template // Map from name to defined templates.
template.go#L29: type Template struct {
template.go#L38: func New(name string) *Template {
template.go#L39: t := &Template{
template.go#L47: func (t *Template) Name() string {
template.go#L58: func (t *Template) New(name string) *Template {
template.go#L60: nt := &Template{
template.go#L70: func (t *Template) init() {
template.go#L73: c.tmpl = make(map[string]*Template)
template.go#L86: func (t *Template) Clone() (*Template, error) {
template.go#L115: func (t *Template) copy(c *common) *Template {
template.go#L116: return &Template{
template.go#L129: func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) {
template.go#L145: func (t *Template) Templates() []*Template {
template.go#L152: m := make([]*Template, 0, len(t.tmpl))
template.go#L164: func (t *Template) Delims(left, right string) *Template {
template.go#L177: func (t *Template) Funcs(funcMap FuncMap) *Template {
template.go#L188: func (t *Template) Lookup(name string) *Template {
template.go#L207: func (t *Template) Parse(text string) (*Template, error) {
template.go#L227: func (t *Template) associate(new *Template, tree *parse.Tree) bool {
html/template
escape.go#L91: derived map[string]*template.Template
escape.go#L116: map[string]*template.Template{},
escape.go#L656: func (e *escaper) computeOutCtx(c context, t *template.Template) context {
escape.go#L678: func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
escape.go#L903: func (e *escaper) template(name string) *template.Template {
template.go#L27: text *template.Template