Documentation ¶
Index ¶
- func CmdRun(ctx context.Context, strCmd string, strArgs ...string) (error, bool)
- func CopyFile(destPath, srcPath string) error
- func CreateDateDir(basePath string) string
- func EasyCmdRun(ctx context.Context, strCmd string, strArgs string) (error, bool)
- func ExpiredDirClean(dir string, expiredTime time.Duration) error
- func GetFileMd5(path string) string
- func GetFileSize(fileName string) (int64, error)
- func HttpClientCreate() *http.Client
- func HttpClientGet(netClient *http.Client, url string) (bodyResp []byte, statusCode int, err error)
- func HttpClientPost(netClient *http.Client, url string, postBody string) (bodyResp []byte, statusCode int, err error)
- func IsExistFileInfo(name string) error
- func LargestCommonDivisor(m, n int) int
- func Load(name string, value interface{}) (err error)
- func LogExit()
- func LogInit(log_scribe interface{})
- func LogTrace(log_level LogLevel, log_scribe interface{}, format string, args ...interface{})
- func LogTraceD(format string, args ...interface{})
- func LogTraceE(format string, args ...interface{})
- func LogTraceI(format string, args ...interface{})
- func PanicDump(err interface{})
- func PanicHandler()
- func PanicTrace() string
- func PanicTraceEx()
- func Random() int64
- func RedisDestroy()
- func RedisDo(cmd string, args ...interface{}) (err error)
- func RedisGet(key string) (value string, err error)
- func RedisHGet(key, field string) (value string, err error)
- func RedisInit(server, password string)
- func RedisLLen(key string) (value int, err error)
- func RedisLPop(key string) (value string, err error)
- func RedisLPush(key, value string) (err error)
- func RedisPoolInit(server, password string) *redis.Pool
- func RedisRPush(key, value string) (err error)
- func TestCmdRun()
- type LogLevel
- type WaitGroupWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EasyCmdRun ¶
指定超时时间,调用外部可执行程序运行
func GetFileSize ¶
func HttpClientGet ¶
实现http client get方法的封装
func HttpClientPost ¶
func HttpClientPost(netClient *http.Client, url string, postBody string) (bodyResp []byte, statusCode int, err error)
实现http client post方法的封装
func IsExistFileInfo ¶
func PanicHandler ¶
func PanicHandler()
func PanicTraceEx ¶
func PanicTraceEx()
func RedisLPush ¶
func RedisRPush ¶
Types ¶
type WaitGroupWrapper ¶
func (*WaitGroupWrapper) Wrap ¶
func (w *WaitGroupWrapper) Wrap(cb func())
Click to show internal directories.
Click to hide internal directories.