collection

package
v0.0.0-...-f1279a5 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Err_NotSliceOrArray = errors.New("必须为slice或array")

Functions

func Complement

func Complement()

补集

func Group

func Group(coll interface{}, field string, result interface{}) error

通过集合中的某一字段对数据进行分组

func Index

func Index(coll interface{}, item interface{}) int

func IndexField

func IndexField(coll interface{}, field string, item interface{}) int

func IndexFunc

func IndexFunc(coll interface{}, function func(interface{}, interface{}) bool) int

func Intersection

func Intersection()

交集

func Union

func Union()

并集

func Unique

func Unique(result interface{}, items ...interface{}) error

唯一化结合元素

Types

This section is empty.

Jump to

Keyboard shortcuts

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