package util import ( "os" "path/filepath" ) var PROD bool = true func Mkdir(args ...interface{}) error { var path string var mode os.FileMode mode = 0755 for _, arg := range args { switch arg := arg.(type) { case string: path = filepath.Join(path, arg) case os.FileMode: mode = arg } } return os.MkdirAll(path, mode) }