mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 09:08:45 +05:00
Renamed NewPathToItem to NewPathItems
This commit is contained in:
committed by
Dan Christian Bogos
parent
ac1addb6e9
commit
dafe0214e4
@@ -145,7 +145,7 @@ func (onm OrderedNavigableMap) Len() int {
|
||||
// FieldAsString returns thevalue from path as string
|
||||
func (onm *OrderedNavigableMap) FieldAsString(fldPath []string) (str string, err error) {
|
||||
var val NMInterface
|
||||
val, err = onm.nm.Field(NewPathToItem(fldPath))
|
||||
val, err = onm.nm.Field(NewPathItems(fldPath))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
@@ -155,7 +155,7 @@ func (onm *OrderedNavigableMap) FieldAsString(fldPath []string) (str string, err
|
||||
// FieldAsInterface returns the interface at the path
|
||||
func (onm *OrderedNavigableMap) FieldAsInterface(fldPath []string) (str interface{}, err error) {
|
||||
var val NMInterface
|
||||
val, err = onm.nm.Field(NewPathToItem(fldPath))
|
||||
val, err = onm.nm.Field(NewPathItems(fldPath))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user