Documentation ¶
Index ¶
- func ATo(arr []interface{}) []string
- func BytesTo[T BType](bys []byte, def T) T
- func BytesToUInt32(bys []byte) uint32
- func BytesToUInt64(bys []byte) uint64
- func Decimal(f float64) float64
- func DefaultString(a string, def string) string
- func F64ToString(a float64) string
- func F64ToStringV(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 int64, decimal float64)
- func PercentIf(number string) (float64, bool)
- func StringToF64(a string) float64
- func StringToF64V(a string, bitSize int) float64
- 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 ToBytes[T BType](n T) []byte
- func ToString(value interface{}) string
- func ToStringV2(reflectValue reflect.Value) string
- 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
- type Builder
- func (b *Builder) WriteF64(n float64) (int, error)
- func (b *Builder) WriteInt(n int) (int, error)
- func (b *Builder) WriteInt32(n int32) (int, error)
- func (b *Builder) WriteInt64(n int64) (int, error)
- func (b *Builder) WriteUInt(n uint) (int, error)
- func (b *Builder) WriteUInt32(n uint32) (int, error)
- func (b *Builder) WriteUInt64(n uint64) (int, error)
- type Number
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 F64ToString ¶ added in v1.3.25
func F64ToStringV ¶ added in v1.3.25
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 StringToF64 ¶ added in v1.3.25
func StringToF64V ¶ added in v1.3.25
func StringToInt ¶
func StringToInt32 ¶ added in v1.0.52
func StringToInt64 ¶
func StringToUInt32 ¶ added in v1.0.52
func StringToUInt64 ¶
func ToStringV2 ¶ added in v1.3.40
func UInt32ToBytes ¶ added in v1.0.37
func UInt32ToString ¶ added in v1.0.52
func UInt64ToBytes ¶ added in v1.0.37
func UInt64ToString ¶
Types ¶
type Number ¶ added in v1.3.56
func NumberWithF64 ¶ added in v1.3.56
func NumberWithI64 ¶ added in v1.3.56
func NumberWithString ¶ added in v1.3.56
Click to show internal directories.
Click to hide internal directories.