func github.com/google/safehtml/template.New
18 uses
github.com/google/safehtml/template (current package)
template.go#L154: t, err := New("").Parse(text)
template.go#L330: func New(name string) *Template {
template.go#L365: emptyTmpl := New(existing.Name())
template.go#L546: t = New(name)
golang.org/x/pkgsite/internal/frontend
fetch.go#L261: t := template.Must(template.New("").Parse(`{{.}}`))
fetch.go#L303: t := template.Must(template.New("").Parse(`{{.}}`))
overview.go#L81: t := template.Must(template.New("").Parse(`{{.}}
`))
readme.go#L76: t := template.Must(template.New("").Parse(`{{.}}
`))
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
template.go#L30: bodyTemplate = template.Must(template.New("body.tmpl").
template.go#L36: outlineTemplate = template.Must(template.New("outline.tmpl").
template.go#L39: sidenavTemplate = template.Must(template.New("sidenav-mobile.tmpl").
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
idents.go#L318: var LinkTemplate = template.Must(template.New("link").Parse(
linkify.go#L507: var anchorTemplate = template.Must(template.New("anchor").Parse(``))
render.go#L73: var docDataTmpl = template.Must(template.New("").Parse(`
render.go#L98: var exampleTmpl = template.Must(template.New("").Parse(`
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. |