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