From a2b510b7330c4f040b05fbb34f3eb0a5e547474d Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 29 Jun 2024 17:00:23 +0200 Subject: [PATCH] chore: fix upgrading libraries --- util/format.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/format.go b/util/format.go index 30938b35a..01e196295 100644 --- a/util/format.go +++ b/util/format.go @@ -9,6 +9,7 @@ import ( "time" "github.com/go-sprout/sprout" + "github.com/samber/lo" "golang.org/x/exp/maps" ) @@ -85,7 +86,7 @@ func ReplaceFormatted(s string, kv map[string]interface{}) (string, error) { if val == nil { wanted = append(wanted, key) format = "%s" - val = PtrTo(any("?")) + val = lo.ToPtr(any("?")) } // update all literal matches