Versions in this module Expand all Collapse all v1 v1.0.1 Apr 8, 2021 Changes in this version + const InternalCode + 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 GenerateSecret() string + func GenerateSha1Sign(params, appSecret string) string + func GenerateSignCode(count uint8) string + func GetActivityBeginTime(beginTimeEv string) (int64, error) + func GetCompletePhone(countryCode, mobile string) string + func GetCurrentDay(d time.Time, hour, min int) time.Time + func GetCurrentDayStr(d time.Time) string + func GetCurrentTime() time.Time + func GetDayPoint(bTime, eTime int64) (point []string) + func GetDayPoint2(st, et int64) (points []string) + func GetExpireTimeDay(expireUnixT, nowUnix int64) int32 + func GetFirstDateOfMonth(d time.Time) time.Time + func GetFirstDateOfWeek(d time.Time) time.Time + func GetGrpcClient(serverName string) (*grpc.ClientConn, error) + func GetLastDateOfMonth(d time.Time) time.Time + func GetLastDateOfWeek(d time.Time) time.Time + 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 GetSecTimeStamp() int64 + func GetTimeStamp() int64 + func GetUUID() string + func GetWeekPoint(bTime, eTime int64) (point []string) + func GetWeekPoint2(st, et int64) (points []string) + func GetZeroTimeOfDay(d time.Time) time.Time + func ParseTimeOfCustom(unixT int64, layStr string) string + func ParseTimeOfStr(unixT int64) string + func RemoveDuplicateElement(src []string) []string + func SeparateTable(id string, count int) string + func Time2MSTimeStamp(t *time.Time) int64 + type CustomTime struct + func (ct *CustomTime) IsSet() bool + func (ct *CustomTime) MarshalJSON() ([]byte, error) + func (ct *CustomTime) UnmarshalJSON(b []byte) (err error) + type StartAndStopTime struct + StartTime int64 + StopTime int64 v1.0.0 Dec 21, 2020