Documentation ¶
Overview ¶
Package other 异步执行
Package other 常见的正则表达式 ¶
string
Index ¶
- func ConvertInterfaceToMap(src interface{}) (dest map[string]interface{}, isMap bool)
- func Decimal(value float64) float64
- func DuplicateRemoval(a []int64) []int64
- func Email(email string) (b bool)
- func Encryption(password string, salt string) string
- func Equals(a, b interface{}) (bool, error)
- func Float64ToString(f float64) string
- func GenValidateCode(width int) string
- func GetBinAbsPath() string
- func GetOpId(vv interface{}) (ret interface{})
- func GetPoint(points ...int) int
- func GetVersion() string
- func Int32ToStr(src int32) string
- func Int64ToStr(src int64) string
- func Int64TurnString(pr int64) string
- func IntArrayToString(p []int32) string
- func IntChipToStringAll(toType language.Tag, chip int64) string
- func IntToStr(i int) string
- func IntTurnString(pr int) string
- func Intercept(parameter string, condition string) string
- func InterfaceTurnString(pr interface{}) string
- func IsNull(str string) (bool bool)
- func JsonToMap(jsonStr string) (map[string]interface{}, error)
- func MapToJson(m map[string]interface{}) (string, error)
- func MapTurnStruct(m map[string]interface{}) (obj interface{}, err error)
- func Max(m map[string]int64) (key string)
- func Md5V3(m string) string
- func Min(m map[string]int64) (key string)
- func Password(password string) (b bool)
- func Phone(phone string) (b bool)
- func RandomString(length int) string
- func RemoveDuplicatesAndEmpty(a []string) (ret []string)
- func Salt() (salt string, err error)
- func SortMap(rate map[int64]float64) []int64
- func SplitUtil(parameter string, condition string) []string
- func StrToInt(src string) int
- func StrToInt32(src string) int32
- func StrToInt64(src string) int64
- func StringToFloat64(s string) float64
- func StringTurnInt(pr string) (r int, err error)
- func StructuralTurnMap(obj interface{}) map[string]interface{}
- func Substr(str string, start, length int) string
- func SwaggerJson(swagger string) (v map[string]interface{})
- func TestHall()
- func ToInt64(value interface{}) (d int64, err error)
- func ToInt64V2(v interface{}) (d int64, err error)
- func WithStdLib(n int64) int64
- type Async
- type HallUserInfo
- type RedisUser
- type UserAll
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertInterfaceToMap ¶
interface{} 转化为 map
func Float64ToString ¶
func GetVersion ¶ added in v1.0.3
func GetVersion() string
func IntArrayToString ¶
func IntChipToStringAll ¶
IntChipToStringAll ... @Description: 自定义 @param chip @return string
func JsonToMap ¶
JsonToMap ... @Description: @param jsonStr @return map[string]interface{} @return error
func MapToJson ¶
MapToJson map 转 Json Json 通过第三方工具 (https://www.sojson.com/json/json2go.html) {"code":200,"data":{"age":19,"user":"lcc"},"massage":"ok"} TestMapToJson
func MapTurnStruct ¶
map 转 struct
func StringToFloat64 ¶
func StructuralTurnMap ¶
func StructuralTurnMap(obj interface{}) map[string]interface{}
struct 转 map
Types ¶
type Async ¶
type Async struct {
// contains filtered or unexported fields
}
Async 异步执行对象
type HallUserInfo ¶
func HallUserInfoGo ¶
func HallUserInfoGo() []HallUserInfo
Click to show internal directories.
Click to hide internal directories.