Documentation
¶
Index ¶
- func CustomTimestampGen() string
- func DeepCopy(dst, src interface{}) error
- func DeepCopyByJSON(dst, src interface{}) error
- func DefaultString(value, defaultValue string) string
- func GetRandomNum(l int) string
- func GetRandomSixDigital() string
- func GetRandomString(l int) string
- func IsDigitPresent(number, d int) bool
- func IsDigitPresentUint64(number uint64, d uint64) bool
- func OrderBizIDGen() string
- func OrderOriIDRestore(bizid string) string
- func OrderShortBizIDGen() string
- func OrderShortBizIDGenUint64() uint64
- func ParseBytesToInt(b []byte) int
- func ParseInt32ToStr(value int32) string
- func ParseInt64ToStr(value int64) string
- func ParseIntToBytes(num int) []byte
- func ParseStrToInt(value string, defaultValue int) int
- 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 ParseUint64ToBytes(num uint64) []byte
- func ParseUint64ToStr(value uint64) string
- func SettlementID(id, modifier string) string
- func SplitPhone(phone string) (string, string, apperr.Error)
- func UUIDFromString(value string) (uuid.UUID, error)
- func UUIDGen() string
- func UUIDString(id uuid.UUID) string
- func UUIDStringGen() string
- func UUIDV1Gen() string
- func UUIDV4Gen() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultString ¶
DefaultString DefaultString
func GetRandomSixDigital ¶
func GetRandomSixDigital() string
GetRandomSixDigital GetRandomSixDigital
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 ParseStrToInt64 ¶
ParseStrToInt64 ParseInt64
func ParseStrToUint ¶
ParseStrToUint ParseUint
func ParseStrToUint32 ¶
ParseStrToUint32 ParseUint
func ParseStrToUint64 ¶
ParseStrToUint64 ParseUint64
func ParseTimeNano ¶
ParseTimeNano ParseTimeNano
func ParseUint64ToStr ¶
ParseUint64ToStr ParseUint64ToStr
func SplitPhone ¶
SplitPhone SplitPhone +8615618297195",
func UUIDFromString ¶
UUIDFromString UUIDFromString
func UUIDStringGen ¶
func UUIDStringGen() string
UUIDStringGen UUIDStringGen 5106b5e58ee44f74a5d49e779dcf7f57
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.