Documentation ¶
Index ¶
- func BytesToString(b []byte) string
- func CompleteUrlHttp(url string) string
- func CompleteUrlHttps(url string) string
- func Contains(s, sep string) bool
- func GenerateId(customId string) string
- func GenerateIdAndTime(customId, customTime string) string
- func GenerateIdAndTimeLength(customId, customTime string, dataLength int) string
- func GenerateIdLength(customId string, dataLength int) string
- func GenerateRandom(length, count int) []int
- func GenerateRandomFunc(length, count int, dFun func(num int) bool) []int
- func GenerateRandomNumber(start, end, count int, dFun func(num int) bool) []int
- func GetDefault(key, defVal any) any
- func GetString(i interface{}) string
- func GetStringDefault(key, defVal string) string
- func GetUuId() string
- func HmacSha256Hex(key, strToSign string) string
- func LineBreak(str string) string
- func NumericalToString(value interface{}) (string, bool)
- func Replace(str, old, new string) string
- func Space(str string) string
- func SpaceAndLineBreak(str string) string
- func Split(s string, sep string) []string
- func StringToBytes(s string) []byte
- func ToFloat64(s string) float64
- func ToInt(s string) int
- func ToInt64(s string) int64
- func ToLower(s string) string
- func ToString(value interface{}) string
- func ToUint(s string) uint
- func ToUint64(s string) uint64
- func ToUpper(s string) string
- func TrimLastChar(s string) string
- type Only
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶ added in v1.0.60
func CompleteUrlHttp ¶ added in v1.0.149
CompleteUrlHttp 补全 URL
func CompleteUrlHttps ¶ added in v1.0.149
CompleteUrlHttps 补全 URL
func GenerateIdAndTime ¶ added in v1.0.51
GenerateIdAndTime 生成18位编号
func GenerateIdAndTimeLength ¶ added in v1.0.88
GenerateIdAndTimeLength 生成自定义长度编号
func GenerateIdLength ¶ added in v1.0.88
GenerateIdLength 生成自定义长度编号
func GenerateRandom ¶ added in v1.0.52
GenerateRandom 生成count个长度length不重复的随机数
func GenerateRandomFunc ¶ added in v1.0.52
GenerateRandomFunc 生成count个长度length不重复的随机数,支持外部查询
func GenerateRandomNumber ¶ added in v1.0.52
GenerateRandomNumber 生成count个[start,end)结束的不重复的随机数
func GetDefault ¶ added in v1.0.52
func GetStringDefault ¶ added in v1.0.52
func HmacSha256Hex ¶
func NumericalToString ¶
func StringToBytes ¶ added in v1.0.60
Types ¶
Click to show internal directories.
Click to hide internal directories.