feat: extract get function

This commit is contained in:
Noah Hsu
2022-06-11 14:43:03 +08:00
parent ec89bb70c7
commit 77b0c69112
8 changed files with 66 additions and 24 deletions

View File

@ -10,3 +10,7 @@ func StandardizationPath(path string) string {
}
return path
}
func PathEqual(path1, path2 string) bool {
return StandardizationPath(path1) == StandardizationPath(path2)
}