type text/template.Template
76 uses
text/template (current package)
exec.go#L34: tmpl *Template
exec.go#L181: func (t *Template) ExecuteTemplate(wr io.Writer, name string, data interface{}) error {
exec.go#L182: var tmpl *Template
exec.go#L202: func (t *Template) Execute(wr io.Writer, data interface{}) error {
exec.go#L206: func (t *Template) execute(wr io.Writer, data interface{}) (err error) {
exec.go#L228: func (t *Template) DefinedTemplates() string {
funcs.go#L139: func findFunction(name string, tmpl *Template) (reflect.Value, 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#L28: type Template struct {
template.go#L37: func New(name string) *Template {
template.go#L38: t := &Template{
template.go#L46: func (t *Template) Name() string {
template.go#L57: func (t *Template) New(name string) *Template {
template.go#L59: nt := &Template{
template.go#L69: func (t *Template) init() {
template.go#L72: c.tmpl = make(map[string]*Template)
template.go#L85: 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#L140: func (t *Template) Templates() []*Template {
template.go#L145: m := make([]*Template, 0, len(t.tmpl))
template.go#L157: func (t *Template) Delims(left, right string) *Template {
template.go#L170: func (t *Template) Funcs(funcMap FuncMap) *Template {
template.go#L181: func (t *Template) Lookup(name string) *Template {
template.go#L198: func (t *Template) Parse(text string) (*Template, error) {
template.go#L218: func (t *Template) associate(new *Template, tree *parse.Tree) bool {
github.com/google/safehtml/template
escape.go#L75: derived map[string]*template.Template
escape.go#L91: map[string]*template.Template{},
escape.go#L519: func (e *escaper) computeOutCtx(c context, t *template.Template) context {
escape.go#L541: func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
escape.go#L781: func (e *escaper) template(name string) *template.Template {
template.go#L30: text *template.Template
golang.org/x/pkgsite/internal/godoc/codec
generate.go#L88: newTemplate := func(name, body string) *template.Template {
generate.go#L130: initialTemplate *template.Template
generate.go#L131: sliceTemplate *template.Template
generate.go#L132: mapTemplate *template.Template
generate.go#L133: structTemplate *template.Template
generate.go#L333: func execute(tmpl *template.Template, data interface{}) ([]byte, error) {
html/template
escape.go#L91: derived map[string]*template.Template
escape.go#L107: map[string]*template.Template{},
escape.go#L587: func (e *escaper) computeOutCtx(c context, t *template.Template) context {
escape.go#L609: func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
escape.go#L834: func (e *escaper) template(name string) *template.Template {
template.go#L27: text *template.Template
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |