Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetListInterIntDiffer ¶
*
- @description: 用于计算数据库中和即将要插入数据的交集,两个差集
- @param {*} slice1 数据库中已存在的数据
- @param {[]int64} slice2 需要新插入的数据
- @return {*} []int64 交集,[]int64 slice1中多出来的差集,[]int64 slice2中多出来的差集
func ListContainsAny ¶
func ListContainsAny(list interface{}, sub interface{}) bool
*
- @description: 判断某个数据存在于某个切片中
- @param {interface{}} list
- @param {interface{}} sub
- @return {*}
func TranslateSqlInAny ¶
func TranslateSqlInAny(strList interface{}) []string
*
- @description: 转换列表成string的列表,用于拼接sql的in
- @param {interface{}} strList
- @return {*}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.