Documentation ¶
Index ¶
- func FormatSliceToMapKey(iDs interface{}) map[interface{}]struct{}
- func IN(data interface{}, dataArray interface{}) bool
- func InInt16Slice(element int16, slice []int16) bool
- func InInt64Slice(element int64, slice []int64) bool
- func InIntSlice(element int, slice []int) bool
- func Sum(dataArray interface{}) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSliceToMapKey ¶
func FormatSliceToMapKey(iDs interface{}) map[interface{}]struct{}
FormatSliceToMapKey 将Slice转为Map返回方便确认是否在数组里
func IN ¶
func IN(data interface{}, dataArray interface{}) bool
IN 判断是否在数组里,性能好差的,最好不要用。直接用FormatSliceToMapKey然后判断是否在里面
func InInt16Slice ¶
InInt16Slice 判断一个元素是否在int16切片里面
func InInt64Slice ¶
InInt64Slice 判断一个元素是否在int64切片里面
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.