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 ab40107 commit a323656Copy full SHA for a323656
src/path/example_test.go
@@ -47,11 +47,15 @@ func ExampleClean() {
47
func ExampleDir() {
48
fmt.Println(path.Dir("/a/b/c"))
49
fmt.Println(path.Dir("a/b/c"))
50
+ fmt.Println(path.Dir("/a/"))
51
+ fmt.Println(path.Dir("a/"))
52
fmt.Println(path.Dir("/"))
53
fmt.Println(path.Dir(""))
54
// Output:
55
// /a/b
56
// a/b
57
+ // /a
58
+ // a
59
// /
60
// .
61
}
0 commit comments