add util.PathJoin

This commit is contained in:
Chris Lu
2020-04-05 12:40:46 -07:00
parent af1f64d244
commit 7bc3c93512
2 changed files with 5 additions and 2 deletions

View File

@@ -46,3 +46,7 @@ func (fp FullPath) Split() []string {
}
return strings.Split(string(fp)[1:], "/")
}
func PathJoin(dir, name string) string {
return filepath.ToSlash(filepath.Join(dir, name))
}