mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
DiameterDP FieldAsInterface implementation
This commit is contained in:
@@ -83,3 +83,12 @@ func StripSlicePrefix(slc []string, nrItems int) []string {
|
||||
}
|
||||
return slc[nrItems:]
|
||||
}
|
||||
|
||||
// SliceStringToIface converts slice of strings into a slice of interfaces
|
||||
func SliceStringToIface(slc []string) (ifc []interface{}) {
|
||||
ifc = make([]interface{}, len(slc))
|
||||
for i, itm := range slc {
|
||||
ifc[i] = itm
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user