Initial commit
This commit is contained in:
14
internal/where/util.go
Normal file
14
internal/where/util.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package where
|
||||
|
||||
import (
|
||||
"github.com/samber/lo"
|
||||
"hub.cybercinch.nz/guisea/go-template/internal/filesystem"
|
||||
"os"
|
||||
)
|
||||
|
||||
// mkdir creates a directory and all parent directories if they don't exist
|
||||
// will return the path of the directory
|
||||
func mkdir(path string) string {
|
||||
lo.Must0(filesystem.Api().MkdirAll(path, os.ModePerm))
|
||||
return path
|
||||
}
|
||||
Reference in New Issue
Block a user