🚧 Ask for next step
This commit is contained in:
parent
c941ed3302
commit
5472d7376a
5 changed files with 26 additions and 11 deletions
13
utils/utils.go
Normal file
13
utils/utils.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package utils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
p "path"
|
||||
)
|
||||
|
||||
func GetShortPath(path string) string {
|
||||
base := p.Base(path)
|
||||
dir := p.Dir(path)
|
||||
dir = p.Base(dir)
|
||||
return fmt.Sprintf("%s/%s", dir, base)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue