tpl/math: Add math.Rand template function

Closes #11833
This commit is contained in:
Joe Mooring 2023-12-28 14:25:29 -08:00 committed by Bjørn Erik Pedersen
parent 9cd8fbb332
commit e40b9fbbcf
5 changed files with 71 additions and 6 deletions

View file

@ -61,12 +61,10 @@ title: "**BatMan**"
ns := nsf(d)
for _, mm := range ns.MethodMappings {
for _, example := range mm.Examples {
if strings.Contains(example[0], "errorf") {
// This will fail the build, so skip for now.
continue
}
if strings.Contains(example[0], "transform.XMLEscape") {
// This will fail the build, so skip for now.
// These will fail the build, so skip.
if strings.Contains(example[0], "errorf") ||
strings.Contains(example[0], "transform.XMLEscape") ||
strings.Contains(example[0], "math.Rand") {
continue
}
templates = append(templates, example[0])