增加in函数的简化写法

This commit is contained in:
白茶清欢 2023-03-30 16:26:19 +08:00
parent 8aee2fb907
commit 662152cb68
1 changed files with 9 additions and 0 deletions

View File

@ -67,3 +67,12 @@ func (a *array) In(search interface{}, source interface{}) int {
}
return -1
}
// InAny In 函数的简化写法
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 16:25 2023/3/30
func (a *array) InAny(search interface{}, source ...interface{}) int {
return a.In(search, source)
}