Documentation ¶
Index ¶
- Variables
- func ContainsInt64(collection []int64, element int64) bool
- func ContainsString(collection []string, element string) bool
- func JoinInt64(arr []int64, sep string) string
- func Md5SumString(input string) string
- func RandomInt(min int, max int) int
- func RandomInt32(min int32, max int32) int32
- func RandomInt64(min int64, max int64) int64
- func RandomString(length int) string
- func SplitToSlice[T any](input, sep string, fn func(item string) T) []T
- func SplitTrim(input, sep string) []string
- func ToInt(v interface{}) int
- func ToInt64(v interface{}) int64
- func ToString(v interface{}) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Now = time.Now()
Functions ¶
func ContainsInt64 ¶
func ContainsString ¶
func Md5SumString ¶
func RandomInt32 ¶
func RandomInt64 ¶
func RandomString ¶
func SplitToSlice ¶
SplitToSlice 分割字符串,去掉空格并遍历
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.