mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-01 00:45:13 +02:00
18 lines
264 B
Go
18 lines
264 B
Go
![]() |
package common
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
|
||
|
"github.com/MontFerret/ferret/pkg/runtime/core"
|
||
|
)
|
||
|
|
||
|
func PathToString(path []core.Value) string {
|
||
|
spath := make([]string, 0, len(path))
|
||
|
|
||
|
for i, s := range path {
|
||
|
spath[i] = s.String()
|
||
|
}
|
||
|
|
||
|
return strings.Join(spath, ".")
|
||
|
}
|