Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains(collection interface{}, target interface{}) bool
Contains 判断obj是否在collection中,collection支持的类型 array,slice,map. collection 为 map 时将根据 key 进行匹配。
func ContainsWhere ¶
ContainsWhere 根据比较函数判断obj是否在collection中,collection支持的类型 array,slice,map
func FirstOrNil ¶
func FirstOrNil(collection interface{}, isMatch func(element interface{}) bool) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.