github.com/google/safehtml/template.Template.Funcs (method)
8 uses
github.com/google/safehtml/template (current package)
template.go#L391: func (t *Template) Funcs(funcMap FuncMap) *Template {
golang.org/x/pkgsite/internal/frontend
server.go#L558: t, err := template.New("base.tmpl").Funcs(templateFuncs).ParseFilesFromTrustedSources(join(base, tsc("html"), tsc("base.tmpl")))
server.go#L581: t, err := template.New("base.tmpl").Funcs(templateFuncs).ParseFilesFromTrustedSources(join(base, tsc("base/base.tmpl")))
golang.org/x/pkgsite/internal/godoc/dochtml
dochtml.go#L129: t := template.Must(tmpl.Clone()).Funcs(funcs)
template.go#L31: Funcs(tmpl).
template.go#L37: Funcs(tmpl).
template.go#L40: Funcs(tmpl).
golang.org/x/pkgsite/internal/worker
server.go#L647: return template.New(filename.String()).Funcs(template.FuncMap{
![]() |
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. |