🚧 Ask for next step

This commit is contained in:
Dan Jones 2023-09-06 18:46:09 -05:00
commit 5472d7376a
5 changed files with 26 additions and 11 deletions

13
utils/utils.go Normal file
View 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)
}