From 4fb4154e30e3ee502f35af18f8d42bb572d7ff53 Mon Sep 17 00:00:00 2001 From: ning <710leo@gmail.com> Date: Thu, 10 Aug 2023 23:15:09 +0800 Subject: [PATCH] feat: add FormatDecimal --- pkg/tplx/tplx.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/tplx/tplx.go b/pkg/tplx/tplx.go index 2c494dbd..c103fbf5 100644 --- a/pkg/tplx/tplx.go +++ b/pkg/tplx/tplx.go @@ -31,4 +31,5 @@ var TemplateFuncMap = template.FuncMap{ "div": Divide, "now": Now, "toString": ToString, + "formatDecimal": FormatDecimal, } -- GitLab