15 lines
338 B
Go
15 lines
338 B
Go
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
|
|
}
|