Categorygithub.com/libra9z/utils
modulepackage
0.0.0-20210717061259-dad1b287d956
Repository: https://github.com/libra9z/utils.git
Documentation: pkg.go.dev

# Functions

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
No description provided by the author
No description provided by the author
return minutes.
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
All in one ConvertString method, rather than requiring the construction of an iconv.Converter.
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
FileExists reports whether the named file or directory exists.
No description provided by the author
No description provided by the author
No description provided by the author
GetFuncName get function name.
No description provided by the author
获取某个月份的开始日期和结束日期 month :0 获取本月的开始和结束日期 month : -1 获取上一个月的 month : 1 获取下一个月的日期 */.
获取某个月份的开始日期和结束日期 month :0 获取本月的开始和结束日期 month : -1 获取上一个月的 month : 1 获取下一个月的日期 */.
获取某个月份的开始日期和结束日期 week :0 获取本周的开始和结束日期 week : -1 获取上一周的 week : 1 获取下一周的日期 */.
获取某个月份的开始日期和结束日期 week :0 获取本周的开始和结束日期 week : -1 获取上一周的 week : 1 获取下一周的日期 weekday : 一周的周几,从0-6,0代表周一 */.
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
GrepFile like command grep -E for example: GrepFile(`^hello`, "hello.txt") \n is striped while read.
No description provided by the author
InSlice checks given string in string slice or not.
InSliceIface checks given interface in interface slice.
No description provided by the author
No description provided by the author
NewIdWorker Func: Generate NewIdWorker with Given workerid.
No description provided by the author
No description provided by the author
ParseId Func: reverse uid to timestamp, workid, seq.
No description provided by the author
No description provided by the author
No description provided by the author
RandomCreateBytes generate random []byte by specify chars.
No description provided by the author
No description provided by the author
SearchFile Search a file in paths.
SelfDir gets compiled executable file directory.
SelfPath gets compiled executable file absolute path.
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
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
SliceChunk separates one slice to some sized slice.
SliceDiff returns diff slice of slice1 - slice2.
SliceFilter generates a new slice after filter function.
SliceIntersect returns slice that are present in all the slice1 and slice2.
SliceMerge merges interface slices to one slice.
SlicePad prepends size number of val into slice.
SliceRand returns random one from slice.
SliceRandList generate an int slice from min to max.
SliceRange generates a new slice from begin to end with step duration of int64 number.
SliceReduce generates a new slice after parsing every value by reduce function.
SliceShuffle shuffles a slice.
SliceSum sums all values in int64 slice.
SliceUnique cleans repeated values in slice.
No description provided by the author

# Constants

No description provided by the author
equal as getMaxWorkerId().
Num of Sequence Bits.
equal as getSequenceMask().
No description provided by the author
Num of WorkerId Bits.
No description provided by the author

# Structs

No description provided by the author
IdWorker Struct.
No description provided by the author
No description provided by the author