- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AddParseTree (0.12 sec)
-
src/cmd/vendor/github.com/google/pprof/internal/driver/webhtml.go
} // Define a named template with specified contents. def := func(name, contents string) { sub := template.New(name) template.Must(sub.Parse(contents)) template.Must(templates.AddParseTree(name, sub.Tree)) } // Embedded files. def("css", loadCSS("html/common.css")) def("header", loadFile("html/header.html")) def("graph", loadFile("html/graph.html")) def("graph_css", loadCSS("html/graph.css"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 2.6K bytes - Viewed (0) -
src/text/template/exec_test.go
} // Add a non-empty template to check that the error is helpful. tests, err := New("").Parse(testTemplates) if err != nil { t.Fatal(err) } tmpl.AddParseTree("secondary", tests.Tree) err = tmpl.Execute(&b, 0) if err == nil { t.Fatal("expected second error") } got = err.Error() want = `template: empty: "empty" is an incomplete or empty template`
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"String", Func, 19}, }, "html": { {"EscapeString", Func, 0}, {"UnescapeString", Func, 0}, }, "html/template": { {"(*Error).Error", Method, 0}, {"(*Template).AddParseTree", Method, 0}, {"(*Template).Clone", Method, 0}, {"(*Template).DefinedTemplates", Method, 6}, {"(*Template).Delims", Method, 0}, {"(*Template).Execute", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)