Skip to content

Commit 26f2fa3

Browse files
authored
add ns.GitPath to return non-OS-specific paths (#17)
1 parent 16a1217 commit 26f2fa3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ns/ns.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ func ParseFromPath(p string) NS {
2424
return strings.Split(filepath.Clean(p), string(filepath.Separator))
2525
}
2626

27+
func (ns NS) GitPath() string {
28+
return strings.Join(ns, "/")
29+
}
30+
2731
func (ns NS) Path() string {
2832
return filepath.Join(ns...)
2933
}

0 commit comments

Comments
 (0)