package
0.0.0-20240420115250-b7f594411e29
Repository: https://github.com/colinrs/pkgx.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
BytesToString convert []byte type to string type.
DeepCopy ...
Download ...
EnsureDir ...
FileIsExist ...
GetBytes interface 转 byte.
GetCurrentMilliTime ...
GetFileSize ...
GetWDPath gets the work directory path.
IsDirExists judges path is directory or not.
IsEmpty 是否是空字符串.
IsFileExists judges path is file or not.
IsInSlice 判断某一值是否在slice中 因为使用了反射,所以时间开销比较大,使用中根据实际情况进行选择.
IsNum judges string is number or not.
IsPointerPointToNil judge whether pointer is point to a nil.
NewInfoRender ...
ParseTimeStr2Time ...
PWD gets compiled executable file absolute path.
PWDDir gets compiled executable file directory.
ReadBytes ...
ReadJSON ...
ReadString ...
Retry ...
No description provided by the author
SliceShuffle shuffle a slice.
No description provided by the author
StringSliceContains 字符串切片中是否包含另一个字符串 来自go源码 net/http/server.go.
StringSliceEqual 判断 string和slice 是否相等.
StringSliceReflectEqual 判断 string和slice 是否相等.
StringToBytes convert string type to []byte type.
StringToInt 字符串转int.
StringToInt64 字符串转int64.
StringToUint64 字符串转uint64.
StrRender ...
Struct2Map struct to map.
Uint64DeleteElemInSlice 从slice删除元素 fast version, 会改变顺序 i:slice的索引值 s: slice.
Uint64DeleteElemInSliceWithOrder 从slice删除元素 slow version, 保持原有顺序 i:slice的索引值 s: slice.
Uint64ShuffleSlice 对slice进行随机.
Uint64SliceReverse 对uint64 slice 反转.
WriteMsgToFile ....
WritePidFile ...
Zip ...
# Variables
FiveMinParten 2006-01-02 15:04.
TimeStr1 200601021504.
UninxTimeStr 1568304212.
# Structs
InfoRender ...