Documentation ¶
Index ¶
- Constants
- func CheckSum(fpath, cType, cSum string) (r bool)
- func Closeq(v any)
- func ComputeSum(fpath, sumType string) (sumStr string)
- 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 ¶ added in v0.2.0
func ExecuteSysCommand ¶ added in v0.2.6
func FlushPathEnvForUnix ¶ added in v0.2.6
func FlushPathEnvForUnix() (err error)
func GetHomeDir ¶ added in v0.2.6
func GetHomeDir() string
func GetShellRcFile ¶ added in v0.2.6
func GetShellRcFile() (rc string)
func PathIsExist ¶
func QuickSort ¶ added in v0.3.3
func QuickSort(itemList []IComparable, left, right int)
func RandomString ¶ added in v0.2.8
func VerifyUrls ¶ added in v0.2.1
Types ¶
type CtrlCSignal ¶ added in v0.1.7
type CtrlCSignal struct {
Sweeper func() error
}
Listen Signal: Ctrl+C
func (*CtrlCSignal) ListenSignal ¶ added in v0.1.7
func (that *CtrlCSignal) ListenSignal()
func (*CtrlCSignal) RegisterSweeper ¶ added in v0.2.6
func (that *CtrlCSignal) RegisterSweeper(f func() error)
type IComparable ¶ added in v0.3.3
type IComparable interface {
Less(IComparable) bool
}
Click to show internal directories.
Click to hide internal directories.