Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package equivalent functions

This commit is contained in:
gezimbll
2023-10-27 09:33:57 -04:00
committed by Dan Christian Bogos
parent 6722d6b6a4
commit 5a85c119c8
43 changed files with 148 additions and 195 deletions

View File

@@ -20,6 +20,7 @@ package engine
import (
"fmt"
"slices"
"strings"
"github.com/cgrates/cgrates/config"
@@ -125,7 +126,7 @@ func (eeR *ExportRequest) SetFields(tplFlds []*config.FCTemplate) (err error) {
return
} else if fullPath == nil { // no dynamic path
fullPath = &utils.FullPath{
PathSlice: utils.CloneStringSlice(tplFld.GetPathSlice()), // need to clone so me do not modify the template
PathSlice: slices.Clone(tplFld.GetPathSlice()), // need to clone so me do not modify the template
Path: tplFld.Path,
}
}