tpl/path: Add path.BaseName function

Closes #9973
This commit is contained in:
Joe Mooring 2022-06-04 13:40:32 -07:00 committed by Bjørn Erik Pedersen
parent 8e2fd55923
commit 953f215f32
9 changed files with 77 additions and 6 deletions

View file

@ -8,8 +8,9 @@ categories: [functions]
menu:
docs:
parent: "functions"
keywords: [path]
keywords: [path, clean]
signature: ["path.Clean PATH"]
relatedfuncs: [path.Base, path.BaseName, path.Dir, path.Ext, path.Join, path.Split]
---
`path.Clean` replaces path separators with slashes (`/`) and removes extraneous separators, including trailing separators.