linting changes
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
This commit is contained in:
parent
e89ce58e24
commit
bfdf63d37c
11 changed files with 48 additions and 27 deletions
|
@ -10,7 +10,7 @@ func split(p string) []string {
|
|||
return strings.Split(p, "/")
|
||||
}
|
||||
|
||||
// Returns the depth or number of / in a given path
|
||||
// PathDepth returns the depth or number of / in a given path
|
||||
func PathDepth(p string) int {
|
||||
parts := split(p)
|
||||
if len(parts) == 2 && parts[1] == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue