package
1.0.0
Repository: https://github.com/henrylee2cn/lessgo.git
Documentation: pkg.go.dev

# Functions

Bytes2String直接转换底层指针,两者指向的相同的内存,改一个另外一个也会变。 效率是string([]byte{})的百倍以上,且转换量越大效率优势越明显。.
camel string, xx_yy to XxYy.
Display print the data in console.
FileExists reports whether the named file or directory exists.
GetDisplayString return data print string.
GetFuncName get function name.
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.
string to hash.
制作特征值方法二.
制作特征值方法一.
NewBeeMap return new safemap.
NewEMail create new Email struct with config json.
复制一个对象,返回指针类型的空对象.
获取对象的类型名称.
PrintPointerInfo dump pointer value.
RandomCreateBytes generate random []byte by specify chars.
转相对路径.
SearchFile Search a file in paths.
No description provided by the author
SelfDir gets compiled executable file directory.
SelfPath gets compiled executable file absolute path.
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.
snake string, XxYy to xx_yy.
Stack get stack bytes.
String2Bytes直接转换底层指针,两者指向的相同的内存,改一个另外一个也会变。 效率是string([]byte{})的百倍以上,且转换量越大效率优势越明显。 转换之后若没做其他操作直接改变里面的字符,则程序会崩溃。 如 b:=String2bytes("xxx"); b[1]='d'; 程序将panic。.
遍历目录,可指定后缀,返回相对路径.

# Structs

Attachment is a struct representing an email attachment.
BeeMap is a map with lock.
Email is the type used for email messages.