- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for mapOfThree (0.1 sec)
-
src/html/template/exec_test.go
return s.String() } func mapOfThree() any { return map[string]int{"three": 3} } func testExecute(execTests []execTest, template *Template, t *testing.T) { b := new(strings.Builder) funcs := FuncMap{ "add": add, "count": count, "dddArg": dddArg, "echo": echo, "makemap": makemap, "mapOfThree": mapOfThree, "oneArg": oneArg,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0) -
src/text/template/exec_test.go
// A bug was introduced that broke map lookups for lower-case names. {"bug9", "{{.cause}}", "neglect", map[string]string{"cause": "neglect"}, true}, // Field chain starting with function did not work. {"bug10", "{{mapOfThree.three}}-{{(mapOfThree).three}}", "3-3", 0, true}, // Dereferencing nil pointer while evaluating function arguments should not panic. Issue 7333. {"bug11", "{{valueString .PS}}", "", T{}, false},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0)