Skip to content

Commit e050b89

Browse files
committed
update file paths
1 parent ba046ef commit e050b89

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

PROGRESS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
- [x] Reading Files->读文件
6969
- [x] Writing Files->写文件
7070
- [x] Line Filters->行过滤器
71-
- [ ] File Paths->文件路径
71+
- [x] File Paths->文件路径
7272
- [ ] Directories->目录
7373
- [ ] Temporary Files and Directories->临时文件和目录
7474
- [ ] Testing->单元测试

examples/file-paths/file-paths.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ func main() {
1717

1818
// 您应该总是使用 `Join` 代替手动拼接 `/` 和 `\`。
1919
// 除了可移植性,`Join` 还会删除多余的分隔符和目录,使得路径更加规范。
20-
2120
fmt.Println(filepath.Join("dir1//", "filename"))
2221
fmt.Println(filepath.Join("dir1/../dir1", "filename"))
2322

0 commit comments

Comments
 (0)