Documentation ¶
Index ¶
- Variables
- func CopyFile(destPath, srcPath string) error
- func CreateDateDir(basePath string) string
- func ExpiredDirClean(dir string, expiredTime time.Duration) error
- func GetFileMd5(path string) string
- func GetFileSize(fileName string) (int64, error)
- func IsExistFileInfo(name string) error
- func LargestCommonDivisor(m, n int) int
- func Load(name string, value interface{}) (err error)
- func PanicDump(err interface{})
- func PanicHandler()
- func PanicTrace() string
- func PanicTraceEx()
- func Random() int64
- type SubProcess
- func (sub *SubProcess) Run(ctx context.Context, ow io.Writer, ew io.Writer, cmd string, args ...string) error
- func (sub *SubProcess) RunWait(ctx context.Context, ow io.Writer, ew io.Writer, cmd string, args ...string) error
- func (sub *SubProcess) RunWithDir(ctx context.Context, ow io.Writer, ew io.Writer, dir string, cmd string, ...) error
- func (sub *SubProcess) Wait(ctx context.Context) error
- type WaitGroupWrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrProcessContextDone = errors.New("process run but upper exit")
)
Functions ¶
func GetFileSize ¶
func IsExistFileInfo ¶
func PanicHandler ¶
func PanicHandler()
func PanicTraceEx ¶
func PanicTraceEx()
Types ¶
type SubProcess ¶
type SubProcess struct {
// contains filtered or unexported fields
}
func NewSubProcess ¶
func NewSubProcess() *SubProcess
func (*SubProcess) RunWithDir ¶
type WaitGroupWrapper ¶
func (*WaitGroupWrapper) Wrap ¶
func (w *WaitGroupWrapper) Wrap(cb func())
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package uniq is a utility package that provides common random unique identifiers in UUID, Base32, and n*2 random hexadecimal characters.
|
Package uniq is a utility package that provides common random unique identifiers in UUID, Base32, and n*2 random hexadecimal characters. |
Click to show internal directories.
Click to hide internal directories.