- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for bDone (0.05 sec)
-
src/text/template/example_test.go
{{end}} Best wishes, Josie ` // Prepare some data to insert into the template. type Recipient struct { Name, Gift string Attended bool } var recipients = []Recipient{ {"Aunt Mildred", "bone china tea set", true}, {"Uncle John", "moleskin pants", false}, {"Cousin Rodney", "", false}, } // Create a new template and parse the letter into it. t := template.Must(template.New("letter").Parse(letter))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 29 00:17:40 UTC 2015 - 2.4K bytes - Viewed (0) -
src/html/template/transition_test.go
t.Errorf("%q/%q: want\n\t%d\nbut got\n\t%d", test.s, test.tag, test.want, got) } } } func BenchmarkTemplateSpecialTags(b *testing.B) { r := struct { Name, Gift string }{"Aunt Mildred", "bone china tea set"} h1 := "<textarea> Hello Hello Hello </textarea> " h2 := "<textarea> <p> Dear {{.Name}},\n{{with .Gift}}Thank you for the lovely {{.}}. {{end}}\nBest wishes. </p>\n</textarea>"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 30 16:22:29 UTC 2015 - 1.7K bytes - Viewed (0)