Documentation ¶
Index ¶
- func ArrayToInt(arr []interface{}) []int
- func BytesToInt(bys []byte) int
- func BytesToInt64(bys []byte) int64
- func DefaultString(a string, def string) string
- func Float64ToString(a float64, prec, bitSize int) string
- func Int64ToBytes(n int64) []byte
- func Int64ToString(a int64) string
- func IntToBytes(n int32) []byte
- func IntToString(a int) string
- func IsEmailValidate(email string) bool
- func IsNameValidate(name 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 StringToInt64(a string) int64
- func StringToUInt64(a string) uint64
- func StringsToInt(arr []string) []int
- func ToFloat64(value interface{}) float64
- func ToInt64(value interface{}) int64
- func ToString(value interface{}) string
- func ToUInt64(value interface{}) uint64
- func UInt64ToString(a uint64) string
- func Uuid() string
- func UuidNot() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToInt ¶ added in v0.4.3
func ArrayToInt(arr []interface{}) []int
func BytesToInt ¶
func BytesToInt64 ¶
func DefaultString ¶
func Float64ToString ¶
func Int64ToBytes ¶
func Int64ToString ¶
func IntToBytes ¶
func IntToString ¶
func NumberValue ¶ added in v0.3.9
func StringToInt ¶
func StringToInt64 ¶
func StringToUInt64 ¶
func StringsToInt ¶ added in v0.4.3
func UInt64ToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.