Renamed NewPathToItem to NewPathItems

This commit is contained in:
Trial97
2020-05-15 09:17:20 +03:00
committed by Dan Christian Bogos
parent ac1addb6e9
commit dafe0214e4
10 changed files with 44 additions and 45 deletions

View File

@@ -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
}