From e28b61e2f0ac1b9367bf899ea3e60a8bc5e48df7 Mon Sep 17 00:00:00 2001 From: Mael GRAMAIN Date: Sun, 13 Dec 2020 14:37:09 -0400 Subject: [PATCH] strings.Replace replaced by strings.ReplaceAll helper function --- utils/queries.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/queries.go b/utils/queries.go index 7df412a..4fd3b9e 100644 --- a/utils/queries.go +++ b/utils/queries.go @@ -48,9 +48,9 @@ func GetRecord(entry Record) Record { record := ExtractAddressFromReverse(entry.Fqdn) var recordFormated string if reverseCheck == 1 { - recordFormated = strings.Replace(record, ".", "-", -1) + recordFormated = strings.ReplaceAll(record, ".", "-") } else { - recordFormated = strings.Replace(record, ":", "-", -1) + recordFormated = strings.ReplaceAll(record, ":", "-") } result.Content = fmt.Sprintf(result.Content, recordFormated) }