Documentation ¶
Index ¶
- Constants
- func CheckSum(fpath, cType, cSum string) (r bool)
- func Closeq(v any)
- func ComputeSum(fpath, sumType string) (sumStr string)
- func CopyAFile(source, destination string) error
- func CopyDirectory(source string, destination string, recursive bool) error
- func CopyFile(src, dst string) (written int64, err error)
- func ExecuteSysCommand(collectOutput bool, workDir string, args ...string) (*bytes.Buffer, error)
- func FlushPathEnvForUnix() (err error)
- func GetHomeDir() string
- func GetShell() (shell string)
- func GetShellRcFile() (rc string)
- func MakeDirs(dirs ...string)
- func PathIsExist(path string) (bool, error)
- func QuickSort(itemList []IComparable, left, right int)
- func RandomString(slength int) string
- func VerifyUrls(rawUrl string) (r bool)
- type CtrlCSignal
- type IComparable
- type UUID
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ComputeSum ¶
func CopyDirectory ¶
CopyDirectory copies the directory at the source path to the provided destination, with the option of recursively copying subdirectories.
func ExecuteSysCommand ¶
func FlushPathEnvForUnix ¶
func FlushPathEnvForUnix() (err error)
func GetHomeDir ¶
func GetHomeDir() string
func GetShellRcFile ¶
func GetShellRcFile() (rc string)
func PathIsExist ¶
func QuickSort ¶
func QuickSort(itemList []IComparable, left, right int)
func RandomString ¶
func VerifyUrls ¶
Types ¶
type CtrlCSignal ¶
type CtrlCSignal struct {
Sweeper func() error
}
Listen Signal: Ctrl+C
func (*CtrlCSignal) ListenSignal ¶
func (that *CtrlCSignal) ListenSignal()
func (*CtrlCSignal) RegisterSweeper ¶
func (that *CtrlCSignal) RegisterSweeper(f func() error)
type IComparable ¶
type IComparable interface {
Less(IComparable) bool
}
Click to show internal directories.
Click to hide internal directories.