Documentation ¶
Index ¶
- Constants
- 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
- type GoPool
- type GoTask
- type Int64Arr
- type NetIfs
- type StartAndStopTime
- type UInt64Slice
Constants ¶
View Source
const (
CtLayoutStr = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func ArrayCheckIn ¶
func ConvertToString ¶
func ConvertToString(value interface{}) string
func DecimalGreaterThanOrEqual ¶
大于等于
func DecimalLessThanOrEqual ¶
小于等于
func DecimalToString ¶
func EqualSliceElem ¶
func EqualSliceElem(obj, target interface{}) bool
func ExternalIP ¶
func GetActivityBeginTime ¶
func GetCurrTimeStr ¶
func GetCurrTimeStr() string
func GetCurrentDayStr ¶
func GetCurrentTime ¶
func GetDayPoint2 ¶
func GetExpireTimeDay ¶
func GetExportExcelFileName ¶
func GetHostName ¶
func GetHostName() string
func GetLocalIp ¶
func GetMSTimeStamp ¶
func GetMSTimeStamp() int64
func GetMonthPoint2 ¶
func GetNDayPoint ¶
func GetNDayPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime)
获取7天日期
func GetNMonthPoint ¶
func GetNMonthPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime)
获取7月日期
func GetNWeekPoint ¶
func GetNWeekPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime)
获取7周日期
func GetNanoTimeStamp ¶
func GetNanoTimeStamp() int64
func GetSecTimeStamp ¶
func GetSecTimeStamp() int64
func GetTimeStamp ¶
func GetTimeStamp() int64
func GetWeekPoint2 ¶
func HiddenPhone ¶
func Interface2IntSlice ¶
func IpIntToStringBig ¶
func ParseTimeOfCustom ¶
func ParseTimeOfStr ¶
func PathExists ¶
func RandomLowerLetterString ¶
func RandomString ¶
func SliceInt2String ¶
func SliceString2int ¶
func StrAtoiCheckFloat ¶
func StrIsAllNum ¶
func Time2MSTimeStamp ¶
Types ¶
type CustomTime ¶
func (*CustomTime) GetCurrTimeStr ¶
func (ct *CustomTime) GetCurrTimeStr() string
func (*CustomTime) IsSet ¶
func (ct *CustomTime) IsSet() bool
func (*CustomTime) MarshalJSON ¶
func (ct *CustomTime) MarshalJSON() ([]byte, error)
func (*CustomTime) UnmarshalJSON ¶
func (ct *CustomTime) UnmarshalJSON(b []byte) (err error)
type GoPool ¶
type GoPool struct { //对外接收Task的入口 EntryChannel chan *GoTask // contains filtered or unexported fields }
有关协程池的定义及操作
定义池类型
type GoTask ¶
type GoTask struct {
// contains filtered or unexported fields
}
有关Task任务相关定义及操作
定义任务Task类型,每一个任务Task都可以抽象成一个函数
type StartAndStopTime ¶
type UInt64Slice ¶
type UInt64Slice []uint64
func (UInt64Slice) Len ¶
func (a UInt64Slice) Len() int
func (UInt64Slice) Less ¶
func (a UInt64Slice) Less(i, j int) bool
func (UInt64Slice) Swap ¶
func (a UInt64Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.