github.com/MontFerret/ferret@v0.18.0/pkg/drivers/common/path.go (about) 1 package common 2 3 import ( 4 "strings" 5 6 "github.com/MontFerret/ferret/pkg/runtime/core" 7 ) 8 9 func PathToString(path []core.Value) string { 10 spath := make([]string, 0, len(path)) 11 12 for i, s := range path { 13 spath[i] = s.String() 14 } 15 16 return strings.Join(spath, ".") 17 }