tpl: Add math.Sqrt

Fixes #6941
This commit is contained in:
Chris Dennis
2020-02-24 22:45:04 +00:00
committed by GitHub
parent 322c285ba2
commit d184e5059c
4 changed files with 68 additions and 1 deletions

View File

@@ -64,6 +64,13 @@ func init() {
},
)
ns.AddMethodMapping(ctx.Sqrt,
nil,
[][2]string{
{"{{math.Sqrt 81}}", "9"},
},
)
ns.AddMethodMapping(ctx.Mod,
[]string{"mod"},
[][2]string{