Documentation ¶
Index ¶
- 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 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 CreateIfNotExist ¶
CreateIfNotExist creates a file if it is not exists
func GetFileExt ¶ added in v0.1.3
GetFileExt get current file ext
func GetFileFullName ¶
GetFileFullName get current file full name
func GetFolderAbsPath ¶
GetFolderAbsPath get folder path
func GetGoModulePath ¶
GetGoModulePath get go module path from local
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 ¶
RemoveFolderIfExist deletes the folder if it is exists
func RemoveIfExist ¶
RemoveIfExist deletes the specified file if it is exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.