package
1.0.0
Repository: https://github.com/fighting2520/go-common.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CheckFiles 检查文件.
Compress files 可以是不同目录下的文件或目录.
Copy 拷贝文件.
No description provided by the author
DifferenceIntSlice 整型切片求差集.
DifferenceStringSlice 字符串切片求差集.
Exclude 排除特定的字符串.
ExportToExcel 中顺序必须与结构且不能跳过结构体中的字段,只可顺序减少结构体后面的字段.
GetAllDirsAndFiles 获取文件夹下所有的文件夹和文件.
GetChunkDataWithIntArr 获取整型切片分组数据.
GetChunkDataWithStringArr 获取字符串切片分组数据.
GetDateCst 获取 cst 时区今天时间为 0 的 Time.
GetDistanceByLonLat 返回米.
No description provided by the author
GetMondayOfNextWeek 获取给定时间下周周一.
GetMondayOfWeek 获取给定时间当周周一.
IntersectIntSlice 整型切片求交集.
IntersectStringSlice 字符串切片求交集.
IntMax 获取最大值.
IntMin 获取最小值.
IsInIntSlice 检查元素是否在整型切片中.
IsInSliceE 检测特定内容.
IsInStringSlice 检查元素是否在字符串切片中.
JoinSliceToString 切片转字符串.
No description provided by the author
No description provided by the author
LonLatConvertUTM2 公司内部经纬度转utm 【算法直译】.
MkdirIfNotExists 创建文件夹.
No description provided by the author
ReadLine 按行读取.
ReadLineByNumber 读取n行.
Round 保留小数点后位数 value float64 浮点数 precise int 需保留小数点后的位数.
ToBool From github.com/spf13/cast.
ToBoolSlice From github.com/spf13/cast ToBoolSlice casts an interface to a []bool type.
ToDuration From github.com/spf13/cast ToDuration casts an interface to a time.Duration type.
ToDurationSlice From github.com/spf13/cast ToDurationSlice casts an interface to a []time.Duration type.
ToFloat32 From github.com/spf13/cast ToFloat32 casts an interface to a float32 type.
ToFloat64 From github.com/spf13/cast ToFloat64 casts an interface to a float64 type.
ToFormatTime 获取上海时区特定格式的数据.
ToInt From github.com/spf13/cast ToInt casts an interface to an int type.
ToInt16 From github.com/spf13/cast ToInt16 casts an interface to an int16 type.
ToInt32 From github.com/spf13/cast ToInt32 casts an interface to an int32 type.
ToInt64 From github.com/spf13/cast ToInt64 casts an interface to an int64 type.
ToInt8 From github.com/spf13/cast ToInt8 casts an interface to an int8 type.
ToIntSlice From github.com/spf13/cast ToIntSlice casts an interface to a []int type.
ToSlice From github.com/spf13/cast ToSlice casts an interface to a []interface{} type.
ToString From github.com/spf13/cast ToString casts an interface to a string type.
ToStringMap From github.com/spf13/cast ToStringMap casts an interface to a map[string]interface{} type.
ToStringMapBool From github.com/spf13/cast ToStringMapBool casts an interface to a map[string]bool type.
ToStringMapInt From github.com/spf13/cast ToStringMapInt casts an interface to a map[string]int type.
ToStringMapInt64 From github.com/spf13/cast ToStringMapInt64 casts an interface to a map[string]int64 type.
ToStringMapString From github.com/spf13/cast ToStringMapString casts an interface to a map[string]string type.
ToStringMapStringSlice From github.com/spf13/cast ToStringMapStringSlice casts an interface to a map[string][]string type.
ToStringSlice From github.com/spf13/cast ToStringSlice casts an interface to a []string type.
ToStringSliceE casts an interface to a []string type.
ToTime From github.com/spf13/cast.
ToTimeInDefaultLocation From github.com/spf13/cast.
ToUint From github.com/spf13/cast ToUint casts an interface to a uint type.
ToUint16 From github.com/spf13/cast ToUint16 casts an interface to a uint16 type.
ToUint32 From github.com/spf13/cast ToUint32 casts an interface to a uint32 type.
ToUint64 From github.com/spf13/cast ToUint64 casts an interface to a uint64 type.
ToUint8 From github.com/spf13/cast ToUint8 casts an interface to a uint8 type.
ToUniqueIntSlice 整型数组去重.
ToUniqueStringSlice 字符串数组去重.
UnionIntSlice 整型切片求并集.
UnionStringSlice 字符串切片求并集.
No description provided by the author
UTMConvertLonLat2 公司内部utm转经纬度 【算法直译】.
No description provided by the author
WriteFile 写文件.
WriteFileWithLine 逐行写入文件.

# Variables

No description provided by the author
正常提前结束,不再继续读取文件.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author