diff --git a/tpl/template_funcs.go b/tpl/template_funcs.go index 3ef36d694..498a38c5e 100644 --- a/tpl/template_funcs.go +++ b/tpl/template_funcs.go @@ -1507,6 +1507,8 @@ func init() { "relref": RelRef, "apply": Apply, "chomp": Chomp, + "int": func(v interface{}) int { return cast.ToInt(v) }, + "string": func(v interface{}) string { return cast.ToString(v) }, "replace": Replace, "trim": Trim, "dateFormat": DateFormat,