Documentation ¶
Index ¶
- func BytesTo[T BType](bys []byte, def T) T
- func BytesToUInt32(bys []byte) uint32
- func BytesToUInt64(bys []byte) uint64
- func DefaultString(a string, def string) string
- func Float64ToString(a float64, prec, bitSize int) string
- func GetChinaPhone(num string) string
- func GetHKPhone(num string) string
- func HasChinaPhoneLegal(num string) bool
- func HasHKPhoneLegal(num string) bool
- func HasPhoneLegal(num string) bool
- func Int32ToString(a int32) string
- func Int64ToString(a int64) string
- func IntToString(a int) string
- func IsEmailValidate(email string) bool
- func IsNameValidate(name string) bool
- func IsPhoneExtValidate(mobile string) bool
- func IsPhoneValidate(mobile string) bool
- func NumberValue(number string) (num, decimal int)
- func PercentIf(number string) (int, bool)
- func StringToInt(a string) int
- func StringToInt32(a string) int32
- func StringToInt64(a string) int64
- func StringToUInt32(a string) uint32
- func StringToUInt64(a string) uint64
- func StringsToInt(arr []string) []int
- func ToBytes[T BType](n T) []byte
- func UInt32ToBytes(n uint32) []byte
- func UInt32ToString(a uint32) string
- func UInt64ToBytes(n uint64) []byte
- func UInt64ToString(a uint64) string
- func Uuid() string
- func UuidNot() string
- type BType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUInt32 ¶ added in v1.0.37
func BytesToUInt64 ¶ added in v1.0.37
func DefaultString ¶
func Float64ToString ¶
func GetChinaPhone ¶ added in v1.0.53
func GetHKPhone ¶ added in v1.0.53
func HasChinaPhoneLegal ¶ added in v1.0.53
func HasHKPhoneLegal ¶ added in v1.0.53
func HasPhoneLegal ¶ added in v1.0.53
func Int32ToString ¶ added in v1.0.52
func Int64ToString ¶
func IntToString ¶
func IsPhoneExtValidate ¶ added in v1.2.17
IsPhoneExtValidate 带分机
func NumberValue ¶ added in v0.3.9
func StringToInt ¶
func StringToInt32 ¶ added in v1.0.52
func StringToInt64 ¶
func StringToUInt32 ¶ added in v1.0.52
func StringToUInt64 ¶
func StringsToInt ¶ added in v0.4.3
func UInt32ToBytes ¶ added in v1.0.37
func UInt32ToString ¶ added in v1.0.52
func UInt64ToBytes ¶ added in v1.0.37
func UInt64ToString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.