From 2a2a96d9fc7792bc3767e3632cc6b5ebad1d7f45 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Mon, 4 Jul 2022 20:03:11 +0800 Subject: [PATCH] add contains funcmap --- src/pkg/tplx/tplx.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkg/tplx/tplx.go b/src/pkg/tplx/tplx.go index f1178884..90380b71 100644 --- a/src/pkg/tplx/tplx.go +++ b/src/pkg/tplx/tplx.go @@ -16,6 +16,7 @@ var TemplateFuncMap = template.FuncMap{ "match": regexp.MatchString, "toUpper": strings.ToUpper, "toLower": strings.ToLower, + "contains": strings.Contains, "humanize": Humanize, "humanize1024": Humanize1024, "humanizeDuration": HumanizeDuration,