1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/pkg/drivers/common/path.go
Tim Voronov 34c8c02258
Refactoring/externalized html (#234)
* Externalized HTML drivers

* Fixed unit tests

* Updated logging

* Added support to set default driver

* Updated GetIn and SetIn helpers
2019-02-19 18:10:18 -05:00

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, ".")
}