type github.com/google/safehtml/template.TrustedSource
37 uses
github.com/google/safehtml/template (current package)
init.go#L17: func trustedSourceRaw(s string) TrustedSource {
init.go#L18: return TrustedSource{s}
template.go#L484: func ParseFilesFromTrustedSources(filenames ...TrustedSource) (*Template, error) {
template.go#L516: func (t *Template) ParseFilesFromTrustedSources(filenames ...TrustedSource) (*Template, error) {
template.go#L583: func ParseGlobFromTrustedSource(pattern TrustedSource) (*Template, error) {
template.go#L619: func (t *Template) ParseGlobFromTrustedSource(pattern TrustedSource) (*Template, error) {
trustedsource.go#L33: type TrustedSource struct {
trustedsource.go#L45: func TrustedSourceFromConstant(src stringConstant) TrustedSource {
trustedsource.go#L46: return TrustedSource{string(src)}
trustedsource.go#L56: func TrustedSourceFromConstantDir(dir stringConstant, src TrustedSource, filename string) (TrustedSource, error) {
trustedsource.go#L58: return TrustedSource{}, fmt.Errorf("filename %q must not contain the separator %q", filename, filename[i])
trustedsource.go#L61: return TrustedSource{}, fmt.Errorf("filename must not be the special name %q", filename)
trustedsource.go#L63: return TrustedSource{filepath.Join(string(dir), src.String(), filename)}, nil
trustedsource.go#L69: func TrustedSourceJoin(elem ...TrustedSource) TrustedSource {
trustedsource.go#L70: return TrustedSource{filepath.Join(trustedSourcesToStrings(elem)...)}
trustedsource.go#L78: func TrustedSourceFromFlag(value flag.Value) TrustedSource {
trustedsource.go#L79: return TrustedSource{fmt.Sprint(value.String())}
trustedsource.go#L90: func TrustedSourceFromEnvVar(key stringConstant) TrustedSource {
trustedsource.go#L91: return TrustedSource{os.Getenv(string(key))}
trustedsource.go#L95: func (t TrustedSource) String() string {
trustedsource.go#L99: func trustedSourcesToStrings(paths []TrustedSource) []string {
github.com/google/safehtml/template/uncheckedconversions
uncheckedconversions.go#L19: var trustedSource = raw.TrustedSource.(func(string) template.TrustedSource)
uncheckedconversions.go#L24: func TrustedSourceFromStringKnownToSatisfyTypeContract(s string) template.TrustedSource {
golang.org/x/pkgsite/internal/frontend
server.go#L44: staticPath template.TrustedSource
server.go#L46: templateDir template.TrustedSource
server.go#L66: StaticPath template.TrustedSource
server.go#L537: func parsePageTemplates(base template.TrustedSource) (map[string]*template.Template, error) {
server.go#L541: htmlSets := [][]template.TrustedSource{
server.go#L567: var files []template.TrustedSource
server.go#L577: styleGuideSets := [][]template.TrustedSource{
server.go#L589: var files []template.TrustedSource
golang.org/x/pkgsite/internal/godoc/dochtml
template.go#L26: func LoadTemplates(dir template.TrustedSource) {
golang.org/x/pkgsite/internal/worker
server.go#L53: staticPath template.TrustedSource
server.go#L67: StaticPath template.TrustedSource
server.go#L642: func parseTemplate(staticPath, filename template.TrustedSource) (*template.Template, error) {
 |
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. |