Versions in this module Expand all Collapse all v1 v1.0.2 Feb 12, 2022 Changes in this version + const CtLayoutStr + func ApiSign(req string, key string) string + func ArrayCheckIn(target string, strArray []string) bool + func ConvertToString(value interface{}) string + func DecimalAdd(d1 decimal.Decimal, d2 decimal.Decimal) decimal.Decimal + func DecimalAddMore(ds ...decimal.Decimal) decimal.Decimal + func DecimalDiv(d1 decimal.Decimal, d2 decimal.Decimal) decimal.Decimal + func DecimalDivMore(ds ...decimal.Decimal) decimal.Decimal + func DecimalGreaterThan(d1 decimal.Decimal, d2 decimal.Decimal) bool + func DecimalGreaterThanOrEqual(d1 decimal.Decimal, d2 decimal.Decimal) bool + func DecimalLessThan(d1 decimal.Decimal, d2 decimal.Decimal) bool + func DecimalLessThanOrEqual(d1 decimal.Decimal, d2 decimal.Decimal) bool + func DecimalMul(d1 decimal.Decimal, d2 decimal.Decimal) decimal.Decimal + func DecimalMulMore(ds ...decimal.Decimal) decimal.Decimal + func DecimalSub(d1 decimal.Decimal, d2 decimal.Decimal) decimal.Decimal + func DecimalSubMore(ds ...decimal.Decimal) decimal.Decimal + func DecimalToFloat64(d decimal.Decimal) float64 + func DecimalToInt64(d decimal.Decimal) int64 + func DecimalToString(d decimal.Decimal) string + func DeepCopy(value interface{}) interface + func EqualSliceElem(obj, target interface{}) bool + func ExternalIP() (string, error) + func GetActivityBeginTime(beginTimeEv string) (int64, error) + func GetCurrTimeStr() string + func GetCurrentDay(d time.Time, hour, min int) time.Time + func GetCurrentDayStr(d time.Time) string + func GetCurrentTime() time.Time + func GetCurrentTimeAdd(add int) time.Time + func GetDateDifferDay(d time.Time, days int) time.Time + func GetDayPoint(bTime, eTime int64) (point []string) + func GetDayPoint2(st, et int64) (points []string) + func GetExpireTimeDay(expireUnixT, nowUnix int64) int32 + func GetExportExcelFileName(prefix string, flags ...string) string + func GetFileSize(path string) int64 + func GetFirstDateOfMonth(d time.Time) time.Time + func GetFirstDateOfWeek(d time.Time) time.Time + func GetHostName() string + func GetLastDateOfMonth(d time.Time) time.Time + func GetLastDateOfWeek(d time.Time) time.Time + func GetLocalIp() (net.IP, error) + func GetMSTimeStamp() int64 + func GetMonthPoint(bTime, eTime int64) (point []string) + func GetMonthPoint2(st, et int64) (points []string) + func GetNDayPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime) + func GetNMonthPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime) + func GetNWeekPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime) + func GetNanoTimeStamp() int64 + func GetNextDaySecond() time.Duration + func GetNicIPs(ifname string) ([]net.IP, error) + func GetSecTimeStamp() int64 + func GetTimeStamp() int64 + func GetUniqId(apiName string) (string, string, error) + func GetWeekPoint(bTime, eTime int64) (point []string) + func GetWeekPoint2(st, et int64) (points []string) + func GetYesterDayBeginAndEndTimestamp() (int64, int64) + func GetZeroTimeOfDay(d time.Time) time.Time + func HiddenPhone(phone string) string + func Interface2IntSlice(sList []interface{}) ([]int, error) + func IpIntToStringBig(ipInt int) string + func Md5Digest(data string) string + func Md5Sum(str string) string + func ParseTimeOfCustom(unixT int64, layStr string) string + func ParseTimeOfStr(unixT int64) string + func PathExists(path string) bool + func RandomHexadecimal() string + func RandomInt(min int, max int) int + func RandomLowerLetterString(l int) string + func RandomString(l int) string + func SliceInt2String(iList []int) []string + func SliceString2int(sList []string) []int + func StrAtoi(value string) int + func StrAtoi64(value string) int64 + func StrAtoiCheckFloat(value string) int + func StrIsAllNum(s string) bool + func StrToTime(t string) (time.Time, error) + func Time2MSTimeStamp(t *time.Time) int64 + func Uniq(data sort.Interface) (size int) + func UpdateImportTaskDescFile(descFile, desc string, reload bool, rTime int) error + type CustomTime struct + func (ct *CustomTime) GetCurrTimeStr() string + func (ct *CustomTime) IsSet() bool + func (ct *CustomTime) MarshalJSON() ([]byte, error) + func (ct *CustomTime) UnmarshalJSON(b []byte) (err error) + type GoPool struct + EntryChannel chan *GoTask + func NewGoPool(cap int) *GoPool + func (p *GoPool) Run() + type GoTask struct + func NewGoTask(f func() error) *GoTask + func (t *GoTask) Execute() + type Int64Arr []int64 + func (a Int64Arr) Len() int + func (a Int64Arr) Less(i, j int) bool + func (a Int64Arr) Swap(i, j int) + type NetIfs map[string]net.Interface + func GetNetIfs() (NetIfs, error) + type StartAndStopTime struct + StartTime int64 + StopTime int64 + type UInt64Slice []uint64 + func (a UInt64Slice) Len() int + func (a UInt64Slice) Less(i, j int) bool + func (a UInt64Slice) Swap(i, j int)