- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ExampleTemplate_glob (0.17 sec)
-
src/text/template/examplefiles_test.go
defer f.Close() _, err = io.WriteString(f, file.contents) if err != nil { log.Fatal(err) } } return dir } // Here we demonstrate loading a set of templates from a directory. func ExampleTemplate_glob() { // Here we create a temporary directory and populate it with our sample // template definition files; usually the template files would already // exist in some location known to the program.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 6.1K bytes - Viewed (0) -
src/html/template/examplefiles_test.go
log.Fatal(err) } } return dir } // The following example is duplicated in text/template; keep them in sync. // Here we demonstrate loading a set of templates from a directory. func ExampleTemplate_glob() { // Here we create a temporary directory and populate it with our sample // template definition files; usually the template files would already // exist in some location known to the program.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 7.5K bytes - Viewed (0)