升级数组操作
This commit is contained in:
18
array_test.go
Normal file
18
array_test.go
Normal file
@ -0,0 +1,18 @@
|
||||
// Package wrapper ...
|
||||
//
|
||||
// Description : wrapper ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2024-05-06 下午2:48
|
||||
package wrapper
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestArray_Unique(t *testing.T) {
|
||||
fmt.Println(ArrayType([]any{"1", 1, 1, "1", 2, 3}).Unique().Value)
|
||||
fmt.Println(ArrayType([]int{1, 1, 2, 3}).Unique().Value)
|
||||
}
|
Reference in New Issue
Block a user