mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 00:58:45 +05:00
Replace interface{} with any
This commit is contained in:
committed by
Dan Christian Bogos
parent
1d7bd1389b
commit
113e2a2bdf
@@ -48,8 +48,8 @@ func PrefixSliceItems(prfx string, slc []string) (out []string) {
|
||||
}
|
||||
|
||||
// SliceStringToIface converts slice of strings into a slice of interfaces
|
||||
func SliceStringToIface(slc []string) (ifc []interface{}) {
|
||||
ifc = make([]interface{}, len(slc))
|
||||
func SliceStringToIface(slc []string) (ifc []any) {
|
||||
ifc = make([]any, len(slc))
|
||||
for i, itm := range slc {
|
||||
ifc[i] = itm
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user