Documentation
¶
Index ¶
- func Base64Decode(value string) (string, error)
- func Common()
- func DeepCopy(dst, src interface{}) error
- func DeepCopyByJSON(dst, src interface{}) error
- func DefaultString(value, defaultValue string) string
- func GenCustomTimestamp() string
- func GenRandomNumString(l int) string
- func GenRandomSixDigital() string
- func GenRandomString(l int) string
- func IsDigitPresent(number, d int) bool
- func IsDigitPresentUint64(number uint64, d uint64) bool
- func LocalCurrent() time.Time
- func OrderBizIDGen() string
- func OrderOriIDRestore(bizid string) string
- func OrderShortBizIDGen() string
- func OrderShortBizIDGenUint64() uint64
- func ParseBytesToInt(b []byte) int
- func ParseBytesToInt32(b []byte) int32
- func ParseBytesToInt64(b []byte) int64
- func ParseBytesToUint(b []byte) uint
- func ParseBytesToUint32(b []byte) uint32
- func ParseBytesToUint64(b []byte) uint64
- func ParseInt32ToBytes(num int32) []byte
- func ParseInt32ToStr(value int32) string
- func ParseInt64ToBytes(num int64) []byte
- func ParseInt64ToStr(value int64) string
- func ParseIntToBytes(num int) []byte
- func ParseIntToStr(value int) string
- func ParseStrToInt(value string, defaultValue int) int
- func ParseStrToInt32(value string, defaultValue int32) int32
- func ParseStrToInt64(value string, defaultValue int64) int64
- func ParseStrToUint(value string, defaultValue uint) uint
- func ParseStrToUint32(value string, defaultValue uint32) uint32
- func ParseStrToUint64(value string, defaultValue uint64) uint64
- func ParseTimeNano(value string, defaultValue time.Time) time.Time
- func ParseUint32ToBytes(num uint32) []byte
- func ParseUint32ToStr(value uint32) string
- func ParseUint64ToBytes(num uint64) []byte
- func ParseUint64ToStr(value uint64) string
- func ParseUintToBytes(num uint) []byte
- func ParseUintToStr(value uint) string
- func SettlementID(id, modifier string) string
- func SplitPhone(phone string) (string, string, apperr.Error)
- func Time0(time1 time.Time) time.Time
- func UUIDFromString(value string) (uuid.UUID, error)
- func UUIDGen() string
- func UUIDString(id uuid.UUID) string
- func UUIDV1Gen() string
- func UUIDV1StringGen() string
- func UUIDV4Gen() string
- func UUIDV4StringGen() string
- func Utc0Current() time.Time
- func Utc0Time(tm time.Time) time.Time
- func Utc8Current() time.Time
- func Utc8Day(days int) time.Time
- func Utc8Day0(time1 time.Time) time.Time
- func Utc8DayString(days int) string
- func Utc8DuctionDays(time1, time2 time.Time) int
- func Utc8Lastday() time.Time
- func Utc8LastdayString() string
- func Utc8Time(tm time.Time) time.Time
- func Utc8Today() time.Time
- func Utc8TodayString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶ added in v0.2.3
Base64Decode Base64Decode
func DefaultString ¶
DefaultString DefaultString
func GenCustomTimestamp ¶ added in v0.1.3
func GenCustomTimestamp() string
GenCustomTimestamp GenCustomTimestamp
func GenRandomNumString ¶ added in v0.1.3
GenRandomNumString GenRandomNumString
func GenRandomSixDigital ¶ added in v0.1.3
func GenRandomSixDigital() string
GenRandomSixDigital GenRandomSixDigital
func GenRandomString ¶ added in v0.1.3
GenRandomString GenRandomString
func IsDigitPresentUint64 ¶
IsDigitPresentUint64 IsDigitPresentUint64
func OrderOriIDRestore ¶
OrderOriIDRestore OrderOriIDRestore order-2019080812282674502
func OrderShortBizIDGen ¶
func OrderShortBizIDGen() string
OrderShortBizIDGen BIZIDGen 1907301746-54-029
func OrderShortBizIDGenUint64 ¶
func OrderShortBizIDGenUint64() uint64
OrderShortBizIDGenUint64 OrderShortBizIDGenUint64
func ParseBytesToInt32 ¶ added in v0.1.2
ParseBytesToInt32 字节转换成整形
func ParseBytesToInt64 ¶ added in v0.1.2
ParseBytesToInt64 字节转换成整形
func ParseBytesToUint ¶ added in v0.1.2
ParseBytesToUint 字节转换成整形
func ParseBytesToUint32 ¶ added in v0.1.2
ParseBytesToUint32 字节转换成整形
func ParseBytesToUint64 ¶ added in v0.1.2
ParseBytesToUint64 字节转换成整形
func ParseInt32ToBytes ¶ added in v0.1.2
ParseInt32ToBytes 整形转换成字节
func ParseInt64ToBytes ¶ added in v0.1.2
ParseInt64ToBytes 整形转换成字节
func ParseIntToStr ¶ added in v0.1.2
ParseIntToStr ParseIntToStr
func ParseStrToInt32 ¶ added in v0.1.2
ParseStrToInt32 ParseStrToInt32
func ParseStrToInt64 ¶
ParseStrToInt64 ParseInt64
func ParseStrToUint ¶
ParseStrToUint ParseUint
func ParseStrToUint32 ¶
ParseStrToUint32 ParseUint
func ParseStrToUint64 ¶
ParseStrToUint64 ParseUint64
func ParseTimeNano ¶
ParseTimeNano ParseTimeNano
func ParseUint32ToStr ¶ added in v0.1.2
ParseUint32ToStr ParseUint32ToStr
func ParseUint64ToStr ¶
ParseUint64ToStr ParseUint64ToStr
func ParseUintToBytes ¶ added in v0.1.2
ParseUintToBytes 整形转换成字节
func ParseUintToStr ¶ added in v0.1.2
ParseUintToStr ParseUintToStr
func SplitPhone ¶
SplitPhone SplitPhone +8615618297195",
func UUIDFromString ¶
UUIDFromString UUIDFromString
func UUIDV1StringGen ¶ added in v0.1.3
func UUIDV1StringGen() string
UUIDV1StringGen UUIDV1StringGen 5106b5e58ee44f74a5d49e779dcf7f57
func UUIDV4StringGen ¶ added in v0.1.3
func UUIDV4StringGen() string
UUIDV4StringGen UUIDV4StringGen 5106b5e58ee44f74a5d49e779dcf7f57
func Utc8DayString ¶ added in v0.1.3
Utc8DayString 当前服务器时间的东八区昨天日期 服务器时区不重要,统一换算为东八区 再向前取一天
func Utc8DuctionDays ¶ added in v0.1.3
Utc8DuctionDays 一个日期和另一个日期相差多少天 要都在东八区算 两边都要先算成 0点,因为两边都算整天的
func Utc8Lastday ¶ added in v0.1.3
Utc8Lastday 当前服务器时间的东八区昨天日期 服务器时区不重要,统一换算为东八区 再向前取一天
func Utc8LastdayString ¶ added in v0.1.3
func Utc8LastdayString() string
Utc8LastdayString 当前服务器时间的东八区昨天日期 服务器时区不重要,统一换算为东八区 再向前取一天
Types ¶
This section is empty.