stringutil

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2022 License: Zlib Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToInt

func BytesToInt(bys []byte) int

func BytesToInt64

func BytesToInt64(bys []byte) int64

func DefaultString

func DefaultString(a string, def string) string

func Float64ToString

func Float64ToString(a float64, prec, bitSize int) string

func Int64ToBytes

func Int64ToBytes(n int64) []byte

func Int64ToString

func Int64ToString(a int64) string

func IntToBytes

func IntToBytes(n int32) []byte

func IntToString

func IntToString(a int) string

func IsEmailValidate

func IsEmailValidate(email string) bool

邮箱合规

func IsNameValidate

func IsNameValidate(name string) bool

用户名验证

func IsPhoneValidate

func IsPhoneValidate(mobile string) bool

手机验证

func StringToInt

func StringToInt(a string) int

func StringToInt64

func StringToInt64(a string) int64

func StringToUInt64

func StringToUInt64(a string) uint64

func UInt64ToString

func UInt64ToString(a uint64) string

func Uuid

func Uuid() string

func UuidNot

func UuidNot() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL