From 8308761f72ca44709b78d5ae6ac631bfa9fad4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 26 Aug 2023 14:02:51 +0800 Subject: [PATCH] array in -> has --- array.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/array.go b/array.go index ac8156d..1d21b88 100644 --- a/array.go +++ b/array.go @@ -238,12 +238,12 @@ func (at *Array) Unique() []interface{} { return []interface{}{} } -// In 查询一个值是否在列表里, 在的话, 返回首次出现的索引, 不在返回-1 +// Has 查询一个值是否在列表里, 在的话, 返回首次出现的索引, 不在返回-1 // // Author : go_developer@163.com<白茶清欢> // // Date : 16:28 2023/7/31 -func (at *Array) In(input interface{}) int { +func (at *Array) Has(input interface{}) int { for idx := 0; idx < len(at.convertResult); idx++ { if nil == input { if nil != at.convertResult[idx] {