"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/content/en/functions/path.Split.md" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

path.Split.md  (hugo-0.80.0):path.Split.md  (hugo-0.81.0)
skipping to change at line 28 skipping to change at line 28
--- ---
`path.Split` splits `PATH` immediately following the final slash, separating it into a directory and a base component. `path.Split` splits `PATH` immediately following the final slash, separating it into a directory and a base component.
The returned values have the property that `PATH` = `DIR`+`BASE`. The returned values have the property that `PATH` = `DIR`+`BASE`.
If there is no slash in `PATH`, it returns an empty directory and the base is se t to `PATH`. If there is no slash in `PATH`, it returns an empty directory and the base is se t to `PATH`.
**Note:** On Windows, `PATH` is converted to slash (`/`) separators. **Note:** On Windows, `PATH` is converted to slash (`/`) separators.
``` ```
{{ path.Split "a/news.html" }} → "a/", "news.html" {{ $dirFile := path.Split "a/news.html" }} → $dirDile.Dir → "a/", $dirFile.File
{{ path.Split "news.html" }} → "", "news.html" "news.html"
{{ path.Split "a/b/c" }} → "a/b/", "c" {{ $dirFile := path.Split "news.html" }} → $dirDile.Dir → "", $dirDile.File → "n
ews.html"
{{ $dirFile := path.Split "a/b/c" }} → $dirDile.Dir → "a/b/", $dirDile.File → "
c"
``` ```
 End of changes. 1 change blocks. 
3 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)