mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
Update path.Split.md
This commit is contained in:
1 parent
2749b88fd0
commit
e16e57e9a4
1 file changed
+3
-3
@@ -25,7 +25,7 @@ If there is no slash in `PATH`, it returns an empty directory and the base is se
|
|||||||
**Note:** On Windows, `PATH` is converted to slash (`/`) separators.
|
**Note:** On Windows, `PATH` is converted to slash (`/`) separators.
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ $dirFile := path.Split "a/news.html" }} → $dirDile.Dir = "a/", $dirFile.File = "news.html"
|
{{ $dirFile := path.Split "a/news.html" }} → $dirDile.Dir → "a/", $dirFile.File → "news.html"
|
||||||
{{ path.Split "news.html" }} → $dirDile.Dir = "", $dirDile.File = "news.html"
|
{{ $dirFile := path.Split "news.html" }} → $dirDile.Dir → "", $dirDile.File → "news.html"
|
||||||
{{ path.Split "a/b/c" }} → $dirDile.Dir = "a/b/", $dirDile.File = "c"
|
{{ $dirFile := path.Split "a/b/c" }} → $dirDile.Dir → "a/b/", $dirDile.File → "c"
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user