We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba046ef commit e050b89Copy full SHA for e050b89
PROGRESS.md
@@ -68,7 +68,7 @@
68
- [x] Reading Files->读文件
69
- [x] Writing Files->写文件
70
- [x] Line Filters->行过滤器
71
-- [ ] File Paths->文件路径
+- [x] File Paths->文件路径
72
- [ ] Directories->目录
73
- [ ] Temporary Files and Directories->临时文件和目录
74
- [ ] Testing->单元测试
examples/file-paths/file-paths.go
@@ -17,7 +17,6 @@ func main() {
17
18
// 您应该总是使用 `Join` 代替手动拼接 `/` 和 `\`。
19
// 除了可移植性,`Join` 还会删除多余的分隔符和目录,使得路径更加规范。
20
-
21
fmt.Println(filepath.Join("dir1//", "filename"))
22
fmt.Println(filepath.Join("dir1/../dir1", "filename"))
23
0 commit comments