Documentation
¶
Index ¶
- Variables
- func Color(colorString string) func(...interface{}) string
- func CopyFile(src, dst string) error
- func Countdown(seconds int64)
- func ExistsDir(dir string) bool
- func ExistsFile(file string) bool
- func GetFileHash(path string) (string, error)
- func GetLastDirName(src string, isDir bool) (string, error)
- func GetPerm(name string) (fs.FileMode, error)
- func ListAllFiles(dir string) ([]string, error)
- func ListFolderFiles(dir string) ([]string, error)
- func Mkdir(path string) error
- func RemoveAll(path string) error
- func SetPerm(name string, perm fs.FileMode) error
- type CommandUtils
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Black = Color("\033[1;30m%s\033[0m") Red = Color("\033[1;31m%s\033[0m") Green = Color("\033[1;32m%s\033[0m") Yellow = Color("\033[1;33m%s\033[0m") Purple = Color("\033[1;34m%s\033[0m") Magenta = Color("\033[1;35m%s\033[0m") Teal = Color("\033[1;36m%s\033[0m") White = Color("\033[1;37m%s\033[0m") )
Functions ¶
func ExistsFile ¶
func GetFileHash ¶
func ListAllFiles ¶
func ListFolderFiles ¶
Types ¶
type CommandUtils ¶
type CommandUtils struct {
}
func (CommandUtils) PressAnyKeyToContinue ¶
func (CommandUtils) PressAnyKeyToContinue()
Click to show internal directories.
Click to hide internal directories.