优化工作路径拼接方法

This commit is contained in:
lifei6671
2018-07-11 14:18:27 +08:00
parent a5d7be92af
commit 894382dfe0
5 changed files with 39 additions and 16 deletions

View File

@@ -289,4 +289,11 @@ func URLForWithCdnJs(p string) string {
return cdn + "/" + p
}
return cdn + p
}
func WorkingDir(elem ...string) string {
elems := append([]string{ WorkingDirectory },elem...)
return filepath.Join(elems...)
}