Documentation
¶
Index ¶
- func ClickhouseDsnConvert(req string) (res string)
- func DeepCopy(dst, src interface{}) error
- func Diff(a map[string]interface{}, b map[string]interface{}) map[string]interface{}
- func DiffList(source, dest interface{}, cmp func(a, b interface{}) bool) (res []interface{})
- func DiffListToSlice(source, dest interface{}, cmp func(a, b interface{}) bool) (res interface{})
- func FindIndex(arr interface{}, item interface{}, cmp func(a, b interface{}) bool) (index int)
- func GenerateFieldOrderRules(sql string) ([]string, bool)
- func IsSliceEqual(a, b interface{}) bool
- func MD5Encode32(str string) string
- func ParseAppUrlAndSubUrl(appUrl string) (string, string, error)
- func PhoneSensitiveInfoRemove(phone string) string
- func RandomString(length int) string
- func StringSliceWithoutRepeat(source []string, notContainEmpty bool) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClickhouseDsnConvert ¶ added in v0.3.2
ClickhouseDsnConvert convert clickhouse-go v1.5 to v2.0
func DiffList ¶
func DiffList(source, dest interface{}, cmp func(a, b interface{}) bool) (res []interface{})
DiffList 求 source 和 dest 的 交/差集 此函数效率较低(O(n^2)),请在列表长度较小时使用
func DiffListToSlice ¶
func DiffListToSlice(source, dest interface{}, cmp func(a, b interface{}) bool) (res interface{})
DiffListToSlice 求 source 和 dest 的 交/差集,返回类型和 source 相同
func GenerateFieldOrderRules ¶ added in v0.4.3
func IsSliceEqual ¶
func IsSliceEqual(a, b interface{}) bool
func MD5Encode32 ¶ added in v0.4.3
func PhoneSensitiveInfoRemove ¶ added in v0.4.6
PhoneSensitiveInfoRemove ...
func RandomString ¶ added in v0.4.3
func StringSliceWithoutRepeat ¶
StringSliceWithoutRepeat 去除[]string 中的重复元素 source 源切片 notContainEmpty 是否不包含空字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.