type text/template.Template
63 uses
text/template (current package)
exec.go#L35: tmpl *Template
exec.go#L188: func (t *Template) ExecuteTemplate(wr io.Writer, name string, data any) error {
exec.go#L206: func (t *Template) Execute(wr io.Writer, data any) error {
exec.go#L210: func (t *Template) execute(wr io.Writer, data any) (err error) {
exec.go#L232: func (t *Template) DefinedTemplates() string {
funcs.go#L144: func findFunction(name string, tmpl *Template) (v reflect.Value, isBuiltin, ok bool) {
helper.go#L24: func Must(t *Template, err error) *Template {
helper.go#L40: func ParseFiles(filenames ...string) (*Template, error) {
helper.go#L55: func (t *Template) ParseFiles(filenames ...string) (*Template, error) {
helper.go#L62: func parseFiles(t *Template, readFile func(string) (string, []byte, error), filenames ...string) (*Template, error) {
helper.go#L79: var tmpl *Template
helper.go#L105: func ParseGlob(pattern string) (*Template, error) {
helper.go#L117: func (t *Template) ParseGlob(pattern string) (*Template, error) {
helper.go#L123: func parseGlob(t *Template, pattern string) (*Template, error) {
helper.go#L138: func ParseFS(fsys fs.FS, patterns ...string) (*Template, error) {
helper.go#L146: func (t *Template) ParseFS(fsys fs.FS, patterns ...string) (*Template, error) {
helper.go#L151: 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#L16: tmpl map[string]*Template // Map from name to defined templates.
template.go#L30: type Template struct {
template.go#L39: func New(name string) *Template {
template.go#L40: t := &Template{
template.go#L48: func (t *Template) Name() string {
template.go#L59: func (t *Template) New(name string) *Template {
template.go#L61: nt := &Template{
template.go#L71: func (t *Template) init() {
template.go#L74: c.tmpl = make(map[string]*Template)
template.go#L87: func (t *Template) Clone() (*Template, error) {
template.go#L112: func (t *Template) copy(c *common) *Template {
template.go#L113: return &Template{
template.go#L126: func (t *Template) AddParseTree(name string, tree *parse.Tree) (*Template, error) {
template.go#L142: func (t *Template) Templates() []*Template {
template.go#L149: m := make([]*Template, 0, len(t.tmpl))
template.go#L161: func (t *Template) Delims(left, right string) *Template {
template.go#L174: func (t *Template) Funcs(funcMap FuncMap) *Template {
template.go#L185: func (t *Template) Lookup(name string) *Template {
template.go#L204: func (t *Template) Parse(text string) (*Template, error) {
template.go#L224: func (t *Template) associate(new *Template, tree *parse.Tree) bool {
html/template
escape.go#L95: derived map[string]*template.Template
escape.go#L120: map[string]*template.Template{},
escape.go#L664: func (e *escaper) computeOutCtx(c context, t *template.Template) context {
escape.go#L686: func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
escape.go#L939: func (e *escaper) template(name string) *template.Template {
template.go#L27: text *template.Template