array

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func InInt16Slice(element int16, slice []int16) bool

InInt16Slice 判断一个元素是否在int16切片里面

func InInt64Slice

func InInt64Slice(element int64, slice []int64) bool

InInt64Slice 判断一个元素是否在int64切片里面

func InIntSlice

func InIntSlice(element int, slice []int) bool

InIntSlice 判断一个元素是否在int切片里面

func Sum

func Sum(dataArray interface{}) (int64, error)

Sum 取得数组和

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL