From 327b6ad097cf7fa66f6fa909de885397f9aa9fc2 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Tue, 13 Oct 2020 17:25:37 +0200 Subject: [PATCH] utils: ReplaceAll -> Replace Fix compatibility with older Go compiler versions --- pkg/utils/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 4e179473f..edfd35e45 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -102,8 +102,8 @@ func Loader() string { // ResolvePlaceholderString populates a template with values func ResolvePlaceholderString(str string, arguments map[string]string) string { for key, value := range arguments { - str = strings.ReplaceAll(str, "{{"+key+"}}", value) - str = strings.ReplaceAll(str, "{{."+key+"}}", value) + str = strings.Replace(str, "{{"+key+"}}", value, -1) + str = strings.Replace(str, "{{."+key+"}}", value, -1) } return str }