Base is like path.Base except that it returns "" for the root folder
(p string)
| 70 | |
| 71 | // Base is like path.Base except that it returns "" for the root folder |
| 72 | func Base(p string) string { |
| 73 | if IsRoot(p) { |
| 74 | return "" |
| 75 | } |
| 76 | return path.Base(p) |
| 77 | } |
no test coverage detected
searching dependent graphs…