使用当前系统分隔符,进行路径的拼接
(paths ...string)
| 70 | |
| 71 | // 使用当前系统分隔符,进行路径的拼接 |
| 72 | func PathJoin(paths ...string) string { |
| 73 | return strings.Join(paths, string(filepath.Separator)) |
| 74 | } |
| 75 | |
| 76 | // 路径组合,参数 os 可以是windows |
| 77 | func filePathJoin(osType OSType, paths ...string) string { |