Documentation
¶
Index ¶
- func CloneProjectFromRemote(dir, remote string) error
- func CreateIfNotExist(file string) (*os.File, error)
- func GetCurrentPath() (string, error)
- func GetFileAbsPath(filePath string) string
- func GetFileExt(filePath string) string
- func GetFileFullName(filePath string) string
- func GetFileName(filePath string) string
- func GetFolderAbsPath(filePath string) string
- func GetGoModulePath() (string, error)
- func GetGoPath() (string, error)
- func GetProjectPath(name string) (string, error)
- func GetValueFromInput(label string) (string, error)
- func GetValueFromMultiSelect(label string, options []string) ([]string, error)
- func GetValueFromSelect(label string, options []string) (string, error)
- func Include(name string, list []string) bool
- func IsFileExist(file string) bool
- func IsFolderExist(dir string) bool
- func MkdirIfNotExist(dir string) error
- func RemoveFolderIfExist(dir string) error
- func RemoveIfExist(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneProjectFromRemote ¶
CloneProjectFromRemote clone project from remote
func CreateIfNotExist ¶
CreateIfNotExist creates a file if it is not exists
func GetFileAbsPath ¶ added in v0.0.9
GetFileAbsPath get file abs path
func GetFileExt ¶ added in v0.0.9
GetFileExt get current file ext
func GetFileFullName ¶ added in v0.0.9
GetFileFullName get current file full name
func GetFileName ¶ added in v0.0.9
GetFileName get current file name
func GetFolderAbsPath ¶ added in v0.0.9
GetFolderAbsPath get folder path
func GetGoModulePath ¶
GetGoModulePath get go module path from local
func GetProjectPath ¶
GetProjectPath get project path
func GetValueFromInput ¶
GetValueFromInput get value from input
func GetValueFromMultiSelect ¶
GetValueFromMultiSelect get value from multi select
func GetValueFromSelect ¶
GetValueFromSelect get value from select
func IsFileExist ¶
IsFileExist returns true if the specified file is exists
func IsFolderExist ¶
IsFolderExist determine if a folder already exists
func MkdirIfNotExist ¶
MkdirIfNotExist makes directories if the input path is not exists
func RemoveFolderIfExist ¶ added in v0.0.6
RemoveFolderIfExist deletes the folder if it is exists
func RemoveIfExist ¶
RemoveIfExist deletes the specified file if it is exists
Types ¶
This section is empty.