mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Coverage tests in ees package and updated Go version in Ansible scripts
This commit is contained in:
committed by
Dan Christian Bogos
parent
d9641e9cf7
commit
4be82cd76f
@@ -192,3 +192,13 @@ func (onm *OrderedNavigableMap) RemoveAll() {
|
||||
onm.orderIdx = NewPathItemList()
|
||||
onm.orderRef = make(map[string][]*PathItemElement)
|
||||
}
|
||||
|
||||
// OrderedFieldsAsStrings returns the elements as strings in order they were inserted
|
||||
func (onm *OrderedNavigableMap) OrderedFieldsAsStrings() (flds []string) {
|
||||
flds = make([]string, 0, onm.Len())
|
||||
for el := onm.GetFirstElement(); el != nil; el = el.Next() {
|
||||
fld, _ := onm.Field(el.Value)
|
||||
flds = append(flds, IfaceAsString(fld.Interface()))
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user